mirror of https://gitlab.com/curben/blog
Prepare for netlify
This commit is contained in:
parent
34c9b29f81
commit
a4490b765d
|
@ -0,0 +1,17 @@
|
||||||
|
[build]
|
||||||
|
command = "snyk auth $SNYK_TOKEN && snyk protect && snyk test"
|
||||||
|
|
||||||
|
[context.production]
|
||||||
|
publish = "public/"
|
||||||
|
command = "hexo generate"
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.value]
|
||||||
|
X-Frame-Options: DENY
|
||||||
|
X-XSS-Protection: 1; mode=block
|
||||||
|
X-Content-Type-Options: nosniff
|
||||||
|
|
||||||
|
for = "/*\.(html|css|js)"
|
||||||
|
[headers.value]
|
||||||
|
Content-Encoding: gzip, br
|
File diff suppressed because it is too large
Load Diff
|
@ -16,6 +16,7 @@
|
||||||
"hexo-renderer-marked": "latest",
|
"hexo-renderer-marked": "latest",
|
||||||
"hexo-renderer-stylus": "latest",
|
"hexo-renderer-stylus": "latest",
|
||||||
"hexo-server": "latest",
|
"hexo-server": "latest",
|
||||||
"hexo-yam": "latest"
|
"hexo-yam": "latest",
|
||||||
|
"snyk": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue