# 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" NPM_FLAGS = "-f" # force install for histoire https://github.com/histoire-dev/histoire/pull/569 ## 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 *"