mistymountains/svelte.config.js

26 lines
721 B
JavaScript
Raw Normal View History

2022-05-03 17:57:42 -04:00
import adapter from '@sveltejs/adapter-node';
2022-04-12 20:39:51 -04:00
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()
2022-05-03 17:57:42 -04:00
},
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'],
}
},
2022-04-12 20:39:51 -04:00
};
export default config;