2024-08-01 18:09:35 +02:00
|
|
|
import adapter from "@sveltejs/adapter-node";
|
2024-07-31 07:23:32 +02:00
|
|
|
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
|
|
|
|
|
2024-08-09 16:17:33 +02:00
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
|
const config = {
|
2024-07-31 07:23:32 +02:00
|
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
|
|
|
// for more information about preprocessors
|
|
|
|
|
preprocess: vitePreprocess(),
|
|
|
|
|
|
|
|
|
|
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.
|
2024-09-24 16:06:24 +02:00
|
|
|
adapter: adapter(),
|
|
|
|
|
csp: {
|
|
|
|
|
mode: "auto",
|
|
|
|
|
directives: {
|
2024-09-25 16:02:12 +02:00
|
|
|
"default-src": ["none"],
|
2024-09-24 16:06:24 +02:00
|
|
|
"script-src": ["self"],
|
2024-09-25 16:02:12 +02:00
|
|
|
"style-src": ["self", "https:", "unsafe-inline"],
|
|
|
|
|
"img-src": ["self", "data:", "https:"],
|
|
|
|
|
"font-src": ["self", "https:"],
|
2024-09-24 16:06:24 +02:00
|
|
|
"connect-src": ["self"],
|
2024-09-25 16:02:12 +02:00
|
|
|
"frame-src": ["self", "https:"],
|
2024-09-24 16:06:24 +02:00
|
|
|
"object-src": ["none"],
|
2024-09-25 16:02:12 +02:00
|
|
|
"base-uri": ["self"],
|
|
|
|
|
"frame-ancestors": ["none"],
|
|
|
|
|
"form-action": ["self"]
|
2024-09-24 16:06:24 +02:00
|
|
|
}
|
|
|
|
|
}
|
2024-07-31 07:23:32 +02:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|