-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnetlify.toml
More file actions
47 lines (37 loc) · 1.55 KB
/
netlify.toml
File metadata and controls
47 lines (37 loc) · 1.55 KB
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
47
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# base = "project/"
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "dist"
# Default build command.
command = "yarn build" # debug with: "yarn build --verbose"
# Directory with the serverless Lambda functions to deploy to AWS.
#functions = "public/lambda"
# Only build on changes to src/ OR changes to .js and .json files outside src/
ignore="git diff --quiet --exit-code dev ./src || if [[ $(git diff --name-only dev .) == *[.](js|json)* ]]; then exit 1; else exit 0; fi"
[build.environment]
NODE_VERSION = "14.17.5"
# Legacy website pages
[[redirects]]
from = "/resources/*"
to = "/en/"
# Basic parcel builded
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
# Basic-Auth allows you to password protect your whole site.
# This feature may not be available on all plans.
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"