-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
35 lines (33 loc) · 804 Bytes
/
svelte.config.js
File metadata and controls
35 lines (33 loc) · 804 Bytes
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
import { preprocessMeltUI } from '@melt-ui/pp';
import sequence from 'svelte-sequential-preprocessor';
import adapter from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config}*/
const config = {
preprocess: sequence([vitePreprocess(), preprocessMeltUI()]),
onwarn: (warning, handler) => {
if (warning.code === 'a11y-click-events-have-key-events') return;
// Handle all other warnings normally
handler(warning);
},
kit: {
adapter: adapter({
runtime: 'nodejs18.x'
}),
alias: {
$src: 'src',
$lib: 'src/lib',
$components: 'src/lib/components',
$assets: 'src/assets'
}
},
csp: {
directives: {
'script-src': ['self']
},
reportOnly: {
'script-src': ['self']
}
}
};
export default config;