forked from raisch/ligerbots-website-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
99 lines (88 loc) · 2.77 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import adapter from '@sveltejs/adapter-node'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
const backendHost = 'ligerbots.4msg.net:8055'
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
adapter: adapter(),
alias: {
$components: './src/components',
$helpers: 'src/helpers',
$styles: 'src/styles',
$types: './src/types'
},
csrf: {
checkOrigin: true
}
}
}
export default config
// csp: {
// directives: {
// 'default-src': ["'self'", 'data:', `http://${backendHost}`],
// 'font-src': [
// "'self'",
// 'fonts.googleapis.com',
// 'fonts.gstatic.com',
// 'cdnjs.cloudflare.com'
// ],
// 'frame-src': [
// "'self'",
// "'unsafe-inline'",
// "'unsafe-eval'",
// 'data:',
// `${backendHost}`,
// 'calendar.google.com',
// 'docs.google.com',
// 'www.youtube.com',
// '*.twitter.com',
// '*.facebook.com',
// 'giphy.com'
// ],
// 'img-src': [
// "'self'",
// "'unsafe-inline'",
// "'unsafe-eval'",
// 'data:',
// `${backendHost}`,
// `*.staticflickr.com`,
// '*.paypal.com',
// '*.paypalobjects.com'
// ],
// 'object-src': [
// "'self'",
// "'unsafe-inline'",
// "'unsafe-eval'",
// 'data:',
// `${backendHost}`
// ],
// 'script-src': [
// "'self'",
// 'unsafe-inline',
// 'data:',
// `${backendHost}`,
// '*.facebook.com',
// '*.twitter.com',
// 'cdnjs.cloudflare.com'
// ],
// 'style-src': [
// "'self'",
// 'unsafe-inline',
// `${backendHost}`,
// 'fonts.googleapis.com',
// 'cdnjs.cloudflare.com'
// ]
// }
// }
/*
default-src 'self' data: http://ligerbots.4msg.net:8055;
frame-src 'self' 'unsafe-inline' 'unsafe-eval' data: http://ligerbots.4msg.net:8055 https://calendar.google.com http://docs.google.com https://www.youtube.com https://syndication.twitter.com https://platform.twitter.com https://giphy.com;
font-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com https://cdnjs.cloudflare.com;
img-src 'self' 'unsafe-inline' 'unsafe-eval' data: http://ligerbots.4msg.net http://ligerbots.4msg.net:8055 https://*.staticflickr.com;
object-src 'self' data: 'unsafe-inline' 'unsafe-eval' http://ligerbots.4msg.net http://ligerbots.4msg.net:8055;
script-src 'self' https://cdnjs.cloudflare.com https://platform.twitter.com 'nonce-tFicJKXMm6rcvaGjstuaJw==';
style-src 'self' http://ligerbots.4msg.net:8055 https://fonts.googleapis.com https://cdnjs.cloudflare.com 'unsafe-inline'
*/