-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsvelte.config.js
136 lines (122 loc) · 4.49 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
import node from '@sveltejs/adapter-node';
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(),
kit: {
// [ℹ] NODE-JS deployment Environment
adapter: node(),
/**
* [ℹ] CSP Support - [PROD / HEROKU ONLY]
* https://developers.google.com/tag-platform/tag-manager/web/csp [GOOGLE-CSP]
* https://yandex.com/support/metrica/code/install-counter-csp.html [YANDEX-CSP]
* [https://github.com/sveltejs/kit/issues/4434]
*/
/**
csp: {
mode: 'hash', // ... hash | nonce | auto
directives: {
// ... ℹ ultimate-default-fallback;
// 'default-src': [
// '*'
// ],
// ... ℹ this defines valid sources for JavaScript.
// ... ℹ falls back to default-src
// 'script-src': [
// // ... ℹ DEV;
// 'https://localhost:3050/',
// 'localhost:*',
// 'localhost',
// 'http:',
// 'http://localhost:3050/',
// // ... ℹ main;
// 'self', // ... ℹ This matches the scheme, origin and port of the document is was served with.
// 'strict-dynamic', // ... ℹ This will allow scripts to load their dependencies without them having to be whitelisted.
// 'unsafe-inline', // ... ℹ This will allow inline resources such as scripts and styles.
// // ... ℹ google;
// // 'https://www.googletagmanager.com',
// // 'https://www.google-analytics.com',
// // 'https://ssl.google-analytics.com',
// // ... ℹ firebase;
// // 'https://betarena-rv-6b382.firebaseio.com/',
// // 'https://*.firebaseio.com',
// // ... ℹ yandex;
// // 'https://mc.yandex.ru',
// // 'https://mc.yandex.az',
// // 'https://mc.yandex.by',
// // 'https://mc.yandex.co.il',
// // 'https://mc.yandex.com',
// // 'https://mc.yandex.com.am',
// // 'https://mc.yandex.com.ge',
// // 'https://mc.yandex.com.tr',
// // 'https://mc.yandex.ee',
// // 'https://mc.yandex.fr',
// // 'https://mc.yandex.kg',
// // 'https://mc.yandex.kz',
// // 'https://mc.yandex.lt',
// // 'https://mc.yandex.lv',
// // 'https://mc.yandex.md',
// // 'https://mc.yandex.tj',
// // 'https://mc.yandex.tm',
// // 'https://mc.yandex.ua',
// // 'https://mc.yandex.uz',
// // 'https://mc.webvisor.com',
// // 'https://mc.webvisor.org',
// // 'https://yastatic.net',
// ],
// 'script-src-elem': ['self',
// 'https://betarena-rv-6b382.firebaseio.com/'],
// ... ℹ this defines valid sources for stylesheets.
// ... ℹ falls back to default-src
'style-src': [
'self',
'unsafe-inline',
'https://fonts.googleapis.com'
],
// ... ℹ this defines valid sources for images to be loaded.
// ... ℹ falls back to default-src
'img-src': [
// ... ℹ domain ORIGIN;
'self',
'https://betarena.com',
'https://*.betarena.com',
// ... ℹ yandex
'https://mc.yandex.ru',
// ... ℹ other
'https://cdn.sportmonks.com',
'https://images1-focus-opensocial.googleusercontent.com',
// ... ℹ google
'https://www.google-analytics.com',
],
// ... ℹ
'object-src': [
'none'
],
// ... ℹ
'base-uri': [
'none'
],
// ... ℹ
// 'connect-src': [
// 'https://get.geojs.io',
// 'https://betarena.hasura.app',
// 'https://betarena-rv-6b382.firebaseio.com/',
// 'https://mc.yandex.ru',
// 'https://www.google-analytics.com'
// ],
// ... ℹ
// 'child-src': [
// 'blob: https://mc.yandex.ru'
// ],
// ... ℹ
// 'frame-src': [
// 'blob: https://mc.yandex.ru'
// ]
}
}
*/
}
};
export default config;