-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnetlify.toml
42 lines (36 loc) · 1.38 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
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# base = "project/"
# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set. This sample publishes the
# directory located at the absolute path "root/project/build-output"
publish = "build/"
# Default build command.
command = "ci/install.sh && ci/build.sh"
# Configure functions - increase timeout for image processing
[functions]
node_bundler = "esbuild"
included_files = ["static/assets/**"]
# Add headers for social media crawlers
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
X-Robots-Tag = "index, follow"
Cache-Control = "public, max-age=3600"
# Add specific headers for OG images to ensure they load properly
[[headers]]
for = "/assets/media/*"
[headers.values]
Cache-Control = "public, max-age=86400"
[[headers]]
for = "/assets/og/*"
[headers.values]
Cache-Control = "public, max-age=86400"