-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
57 lines (54 loc) · 1.39 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
import adapter from "@sveltejs/adapter-netlify";
import preprocess from "svelte-preprocess";
const prod = process.env.NODE_ENV == "production";
export default {
preprocess: preprocess({ postcss: true }),
kit: {
adapter: adapter(),
alias: {
"@app": "src/app",
"@blog": "src/app/blog",
"@resume": "src/app/resume",
"@assets": "src/assets",
},
csp: {
mode: prod ? "hash" : "auto",
directives: {
"base-uri": ["delfick.com"],
"object-src": ["none"],
"frame-src": [
"self",
"https://twitter.com",
"platform.twitter.com",
"syndication.twitter.com",
"app.netlify.com",
],
"img-src": [
"self",
"data:",
"abs.twimg.com",
"https://pbs.twimg.com",
"ton.twimg.com",
"platform.twitter.com",
"https://syndication.twitter.com",
],
"script-src": [
"self",
"http:",
"https:",
"https://cdn.syndication.twimg.com",
"api.twitter.com",
"platform.twitter.com",
"sha256-rwMOiOeVICH7/Cjy5SkreID3OOi5HTrit357k22hUDQ=",
],
"style-src": [
"self",
"unsafe-inline",
"https://ton.twimg.com",
"platform.twitter.com",
"https://cdnjs.cloudflare.com",
],
},
},
},
};