-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
63 lines (56 loc) · 1.45 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
# [[headers]]
# for = "/*"
# [headers.values]
# Access-Control-Allow-Origin = "*"
[[headers]]
for = "/favicon/*"
[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"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Robots-Tag = "noindex"
[build]
command = "npm run build --config astro.config.netlify.mjs"
publish = "dist"
edge_functions = "netlify/functions"
# [[edge_functions]]
# function = "test"
# path = "/test"
[context.develop]
[context.develop.processing.images]
compress = true
[context.develop.processing.css]
minify = true
[context.develop.processing.js]
minify = true
[context.deploy-preview]
[context.deploy-preview.processing]
skip_processing = true
# Netlify CLI
[dev]
command = "npm run dev"
port=80
framework="#custom"
targetPort=3030