-
Notifications
You must be signed in to change notification settings - Fork 7
/
netlify.toml
46 lines (35 loc) · 1.32 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
[build]
publish = "public"
command = "hugo --gc --minify --i18n-warnings"
[context.production]
command = "hugo --gc --minify --i18n-warnings -b $URL"
[context.production.environment]
HUGO_VERSION = "0.71.1"
HUGO_ENV = "production"
HUGO_PROVIDER = "netlify"
# HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = "hugo --gc --minify --i18n-warnings --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.71.1"
HUGO_PROVIDER = "netlify"
[context.branch-deploy]
command = "hugo --gc --minify --i18n-warnings -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.71.1"
HUGO_PROVIDER = "netlify"
# Redirects and headers are GLOBAL for all builds – they do not get scoped to
# contexts no matter where you define them in the file.
# For context-specific rules, use _headers or _redirects files, which are
# PER-DEPLOY.
# A basic 404 redirect rule
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-XSS-Protection = "1; mode=block"
Content-Security-Policy-Report-Only = "script-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com; style-src 'self' data: 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com"