-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
67 lines (59 loc) · 1.58 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
[build]
command = "npm run build" # runs with ENV=production
publish = "dist"
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = [ ".cache" ]
[[headers]]
for = "/favicon/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/feeds/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/api/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/manifest.json"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "*.js"
[headers.values] # cache for 1 year
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "*.css"
[headers.values] # cache for 1 year
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "/*.(svg|jpg|jpeg|png|gif|webp|ico|ttf|ttc|otf|eot|woff|woff2)"
[headers.values] # cache for 1 year
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000, immutable"
# TODO: disable indexing globally. Before production launch, we have to do this: https://docs.netlify.com/routing/headers/#custom-headers-for-different-branch-or-deploy-contexts
[[headers]]
for = "/*"
[headers.values]
X-Robots-Tag = "noindex"
[dev]
# framework = "#static"
port=8888
targetPort=4040
[[edge_functions]]
function = "eleventy-edge"
path = "/*"
[context.tutor-dev]
NODE_ENV="tutor-dev"
ELEVENTY_ENV="tutor-dev"
[context.tutor-local]
NODE_ENV="tutor-local"
ELEVENTY_ENV="tutor-local"
[context.soy]
NODE_ENV="soy"
ELEVENTY_ENV="soy"