forked from razonyang/hugo-theme-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
33 lines (26 loc) · 928 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[build]
publish = "exampleSite/public"
[build.environment]
NODE_VERSION = "17.6.0"
HUGO_VERSION = "0.93.0"
HUGO_ENABLEGITINFO = "true"
GO_VERSION = "1.17.7"
[context.production]
command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --theme=repo -b=https://hbs.razonyang.com/"
[context.production.environment]
HUGO_ENV = "production"
[context.develop]
command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --theme=repo -b=https://develop.hbs.razonyang.com/"
[context.deploy-preview]
command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --theme=repo -b=$DEPLOY_PRIME_URL"
[[headers]]
for = "/*"
[headers.values]
Referrer-Policy = "strict-origin-when-cross-origin"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "deny"
X-XSS-Protection = "1; mode=block"
[[redirects]]
from = "/:lang/*"
to = "/:lang/404.html"
status = 404