-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
36 lines (25 loc) · 765 Bytes
/
netlify.toml
File metadata and controls
36 lines (25 loc) · 765 Bytes
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
# https://docs.netlify.com/configure-builds/ignore-builds/
[build]
command = "./scripts/build.sh"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF publish"
[cache]
[[cache.paths]]
path = "node_modules"
[[headers]]
for = "/*.xml"
[headers.values]
Content-Type = "application/xml; charset=utf-8"
X-Content-Type-Options = "nosniff"
[[headers]]
for = "/fonts/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=604800, immutable"
[[headers]]
# This pattern matches any file ending in .css at any level
for = "/styles/giscus/*.css"
[headers.values]
Access-Control-Allow-Origin = "https://giscus.app"