1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import adapter from '@sveltejs/adapter-node';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
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'],
}
},
};
export default config;
|