8f5a931951
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>
22 lines
427 B
JavaScript
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;
|