-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsvelte.config.js
30 lines (27 loc) · 897 Bytes
/
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
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(),
kit: {
csp: {
directives: {
'default-src': ['none'],
'script-src': ['self', 'get.geojs.io', 'cdn.simpleanalytics.io', 'sa.geojs.io'],
'style-src': ['self', 'unsafe-inline'],
'img-src': ['self', 'www.geojs.io', 'sa.geojs.io'],
'connect-src': ['self', 'get.geojs.io', 'sa.geojs.io', 'api.simpleanalytics.io'],
'font-src': ['none'],
'form-action': ['self'],
'upgrade-insecure-requests': true,
'report-uri': ['https://jloh.report-uri.com/r/d/csp/enforce']
}
},
adapter: adapter({
edge: true // Used to enable Netlify edge funcs
}),
}
};
export default config;