-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
34 lines (26 loc) · 1.09 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
[build]
publish = "_site"
command = "npm run build"
#command = "npm run build && set -e && find ./_site -type f -name '*.html' -exec staticrypt -f password_template.html {} $PASSWORD -o {} \\;"
functions = "functions"
# REDIRECT and HEADERS examples
# Redirect rule example
# For more information see:- https://www.netlify.com/docs/netlify-toml-reference/
#[[redirects]]
# from = "/*"
# to = "/blog/:splat"
# The default HTTP status code is 301, but you can define a different one e.g.
# status = 302
# Headers rule example
# For more information see:- https://www.netlify.com/docs/netlify-toml-reference/
#[[headers]]
# Define which paths this specific [[headers]] block will cover.
# for = "/*"
#[headers.values]
# X-Frame-Options = "DENY"
# X-XSS-Protection = "1; mode=block"
# Content-Security-Policy = "frame-ancestors https://www.facebook.com"
# 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
# applied on a PER-DEPLOY basis.