-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
50 lines (47 loc) · 1.29 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
47
48
49
50
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set. This sample publishes the
# directory located at the absolute path "root/project/build-output"
publish = "dist/"
environment = { NODE_VERSION = "14" }
# If skip_processing = true, all other settings are ignored
[build.processing]
skip_processing = false
[build.processing.html]
minify = true
pretty_urls = true
[build.processing.js]
bundle = false
minify = true
[build.processing.css]
bundle = false
minify = true
[build.processing.images]
compress = true
[[redirects]]
# Show a hard 404 page
from = "/404"
to = "/index.html"
status = 404
[[redirects]]
# Custom API eventually™?
from = "/api/*"
to = "/api/"
status = 200
[[redirects]]
# Make the SPA Work
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
[[headers]]
for = "/static/*"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"