-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
38 lines (36 loc) · 1.1 KB
/
svelte.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import adapter from "@sveltejs/adapter-auto";
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({
postcss: true,
}),
kit: {
adapter: adapter({
edge: false,
external: [],
split: false,
}),
csp: {
directives: {
"default-src": ["none"],
"script-src": ["strict-dynamic"],
"img-src": ["self", "data:"],
"style-src": ["self", "unsafe-inline"], // "unsafe-inline" workaround for https://github.com/sveltejs/kit/issues/5215
"font-src": ["self"],
"connect-src": ["self"],
"form-action": ["self"],
"manifest-src": ["self"],
"base-uri": ["none"],
"frame-ancestors": ["none"],
"media-src": ["none"],
"object-src": ["none"],
"worker-src": ["none"],
// "require-trusted-types-for": ["'script'"], // Currently does not work when deployed to Vercel
},
},
},
};
export default config;