diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2026-01-01 18:32:49 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2026-01-01 18:32:49 -0800 |
| commit | 9af1854a7e35785a8e86426c4fb1edd465f164a3 (patch) | |
| tree | 8a070c6a9498d952c9ef4ba045f2ebfb25f7b335 /svelte.config.js | |
| parent | 0248a3899ed910f005dccaeefc1d9dcb893e8154 (diff) | |
| download | mistymountainstherapy-9af1854a7e35785a8e86426c4fb1edd465f164a3.tar.gz mistymountainstherapy-9af1854a7e35785a8e86426c4fb1edd465f164a3.zip | |
Massive refactor courtesy of 5 dollars of AI tokens
Diffstat (limited to 'svelte.config.js')
| -rw-r--r-- | svelte.config.js | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/svelte.config.js b/svelte.config.js index 3f578a3..efa0e4b 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,25 +1,23 @@ import adapter from '@sveltejs/adapter-node'; -import preprocess from 'svelte-preprocess'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { - // Consult https://github.com/sveltejs/svelte-preprocess - // for more information about preprocessors - preprocess: preprocess(), + // Use vitePreprocess with script preprocessing enabled for TypeScript support + preprocess: vitePreprocess({ script: true }), kit: { - adapter: adapter() - }, - - csp: { - mode: 'auto', - directives: { - 'script-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], - 'frame-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], - 'style-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], - 'connect-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], - } - }, + adapter: adapter(), + csp: { + mode: 'auto', + directives: { + 'script-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], + 'frame-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], + 'style-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], + 'connect-src': ['self', 'https://hcaptcha.com', 'https://*.hcaptcha.com'] + } + } + } }; export default config; |
