generated from philhawksworth/eleventyone
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathnetlify.toml
60 lines (50 loc) · 1.07 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
51
52
53
54
55
56
57
58
59
[build]
command = "npm run build"
publish = "dist"
functions = "src/functions"
NODE_ENV = "16.11.0"
node_bundler = "esbuild"
[[redirects]]
from = "/"
to = "/us/"
conditions = {Country = ["US"]}
status = 200
force = true
[[redirects]]
from = "/create"
to = "/us/create"
conditions = {Country = ["US"]}
status = 200
force = true
[[redirects]]
from = "/lolly/*"
to = "/popsicle/:splat"
conditions = {Country = ["US"]}
status = 302
force = true
# resolve the "new" URL to a function
[[redirects]]
from = "/new"
to = "/.netlify/functions/newLolly"
status = 200
# lolly page requests will be rendered and persisted on demand
[[redirects]]
from = "/lolly/*"
to = "/.netlify/functions/showLolly"
status = 200
[[redirects]]
from = "/popsicle/*"
to = "/.netlify/functions/showLolly"
status = 200
# Not found? This really is a 404
[[redirects]]
from = "/*"
to = "/melted/index.html"
force = false
status = 404
[[redirects]]
from = "/*"
to = "/us/melted/index.html"
conditions = {Country = ["US"]}
force = false
status = 404