import adapter from '@sveltejs/adapter-node'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; import { THEME_SCRIPT_HASH } from './csp-config.js'; /** @type {import('@sveltejs/kit').Config} */ const config = { preprocess: vitePreprocess(), kit: { adapter: adapter({ out: 'build' }), // Content-Security-Policy. `mode: 'hash'` makes SvelteKit hash the // inline scripts IT injects (the hydration bootstrap) and append those // hashes to `script-src`. It does NOT hash the theme