forked from swyxio/swyxdotio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
27 lines (24 loc) · 892 Bytes
/
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
# example netlify.toml
[build]
command = "npm run build"
publish = "build"
[functions]
directory = "functions"
node_bundler = "esbuild"
included_files = ["podcasts.yml", "talks.yml"]
external_node_modules = ["mdsvex"]
[build.environment]
NODE_VERSION = "16"
## as of v0.334 sveltekit requires node 16 https://github.com/sveltejs/kit/pull/4922
## https://github.com/sveltejs/kit/issues/2687
[[headers]]
## https://answers.netlify.com/t/content-type-header-not-working-in-netlify-toml/7718
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Clacks-Overhead = "GNU Terry Pratchett"
Cache-Control = "public, max-age=31536000"
# cache just over 1 hour for webpagetest to be happy
X-Content-Type-Options = "nosniff"
## Content-Security-Policy = "default-src 'self'; script-src 'nonce-swyx'; img-src *"