-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
59 lines (51 loc) · 1017 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[build]
command = "npm install && npm run build"
publish = "dist"
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--version" # stop npm auto install
# Redirects
[[redirects]]
from = "/assets/PDFS/*"
to = "/PDFS/:splat"
status = 301
force = true
[[redirects]]
from = "/contact"
to = "/contact/inez"
status = 302
force = true
[[redirects]]
from = "/contact/robin"
to = "/contact/inez"
status = 302
force = true
[[redirects]]
from = "/contact/robin-and-inez"
to = "/contact/inez"
status = 302
force = true
[[redirects]]
from = "/contact/inez-and-robin"
to = "/contact/inez"
status = 302
force = true
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
# Build Post Processing
[build.processing]
skip_processing = false
[build.processing.css]
bundle = false
minify = true
[build.processing.js]
bundle = false
minify = true
[build.processing.html]
pretty_urls = false
[build.processing.images]
compress = true
[context.deploy-preview.processing.images]
compress = false