Private
Public Access
1
0
Files
Kanban/svelte.config.js
T
Catherine Renelle 8f5a931951 Allow dark mode theme script via CSP hash
The inline script in app.html that applies the dark mode class before
paint is not covered by SvelteKit's nonce system. Whitelist it by
its SHA-256 hash instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 08:20:22 -04:00

22 lines
427 B
JavaScript

import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),
alias: {
$components: 'src/lib/components',
$server: 'src/lib/server',
$utils: 'src/lib/utils'
},
csp: {
directives: {
'default-src': ['self'],
'script-src': ['self', 'sha256-PDIMa2Wg+qyPaCjQ/EcSk+qN0Ftomecz3B0NZzZHivs=']
}
}
}
};
export default config;