moshing-mammut/svelte.config.js

28 lines
800 B
JavaScript
Raw Permalink Normal View History

import adapter from '@sveltejs/adapter-node';
2023-03-19 16:00:49 +00:00
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
2023-03-19 16:17:04 +00:00
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
2023-03-19 16:00:49 +00:00
2023-03-19 16:17:04 +00:00
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
2023-04-11 14:02:54 +00:00
adapter: adapter()
2023-04-26 15:52:21 +00:00
},
csp: {
directives: {
'script-src': ['self']
},
reportOnly: {
'script-src': ['self']
}
2023-04-11 14:02:54 +00:00
}
2023-03-19 16:00:49 +00:00
};
export default config;