moshing-mammut/svelte.config.js

27 lines
835 B
JavaScript
Raw 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.
adapter: adapter(),
2023-04-26 15:52:21 +00:00
csp: {
directives: {
2023-06-20 13:30:30 +00:00
'script-src': ['self', 'unsafe-inline'],
'base-uri': ['self'],
'object-src': ['none']
}
2023-04-26 15:52:21 +00:00
}
2023-04-11 14:02:54 +00:00
}
2023-03-19 16:00:49 +00:00
};
export default config;