mistymountains/svelte.config.js
2022-05-03 15:57:42 -06:00

26 lines
721 B
JavaScript

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;