-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
58 lines (46 loc) · 1.59 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import adapter from "@sveltejs/adapter-netlify";
import { sveltePreprocess } from "svelte-preprocess";
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: sveltePreprocess(),
kit: {
adapter: adapter(),
csp: {
directives: {
"default-src": ["none"],
"img-src": ["self"],
"font-src": ["self"],
"connect-src": ["self"],
"manifest-src": ["self"],
"object-src": ["none"],
"frame-src": ["https://www.youtube-nocookie.com"],
"frame-ancestors": ["none"],
"form-action": ["none"],
"base-uri": ["none"],
"script-src": [
"self",
// For Pagefind to work
"wasm-unsafe-eval",
// The script in app.html to stop the page from flashing
"sha256-igh6+2kzd6C5AbKv2RNaCr6axJslkoleSYgWUDDINvM=",
],
"style-src": [
"self",
// Main CSS style for the entire page
"sha256-EHFod+1+yJWH4JfktKYKAH7HTu+l8xj88fKU0IUyX/U=",
// Styles for the website icon
"sha256-GQHiEoT/Yyw7i/CQpbsUjU+CrrV6C6C7U5iq+niceqw=",
// Styles for the Pagefind highlight script
"sha256-ZCoB1kba9ZTfELA9P5NVsXbrXfcqOSTrLTbcMfUVY4E=",
// This is needed for the style below it to work
"unsafe-hashes",
// No idea what style this is for, but it's required
"sha256-S8qMpvofolR8Mpjy4kQvEm7m1q8clzU4dfDH0AmvZjo=",
],
},
},
},
};
export default config;