From 60bed672313360527aa515ec307a18cb92bc51d5 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Thu, 8 Aug 2024 16:36:17 +0200 Subject: [PATCH] Configure Netlify --- .node-version | 1 + netlify.toml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 .node-version create mode 100644 netlify.toml diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22 diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..6203f97 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,8 @@ +[build] +publish = 'examples/dist/' +command = 'npm run prepack && npx vite build example' + +[[headers]] + for = '/*' + [headers.values] + Content-Security-Policy = "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'"