-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
79 lines (71 loc) · 1.82 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
base = ""
publish = "dist"
command = '''
sed -i "s|PLACES_API_KEY|$PLACES_API_KEY|g" netlify.toml && \
npm run generate'''
# Skip Optional Dependencies
# Turn Off Logging
# https://dev.to/lukeocodes/make-nuxt-js-go-brrrrrrrr-30-minute-to-1-minute-builds-on-netlify-f6e
[build.environment]
NODE_VERSION = "14"
NPM_FLAGS = "--no-optional"
CI = "1"
[[redirects]]
from = "/api/places*"
to = "https://maps.googleapis.com/maps/api/place/details/json?fields=rating,reviews,user_ratings_total&placeid=ChIJs4LylmzXAhURyiITK_fxbhE&key=PLACES_API_KEY:splat"
status = 200
[[redirects]]
from = "/en*"
to = "/:splat"
[[redirects]]
from = "/order"
to = "https://www.tabitorder.com/?siteName=sushinbagel#/start"
[[redirects]]
from = "/about"
to = "/story"
[[redirects]]
from = "/he/about"
to = "/he/story"
[[redirects]]
from = "/products*"
to = "/menu"
[[redirects]]
from = "/en/products*"
to = "/menu"
[[redirects]]
from = "/he/products*"
to = "/he/menu"
[[redirects]]
from = "/collections*"
to = "/menu"
[[redirects]]
from = "/en/collections*"
to = "/menu"
[[redirects]]
from = "/he/collections*"
to = "/he/menu"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
[[headers]]
for = "/fonts/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/img/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.js"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "sw.js"
[headers.values]
Cache-Control = "public, max-age=0, must-revalidate"