-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsvelte.config.js
More file actions
31 lines (28 loc) · 727 Bytes
/
svelte.config.js
File metadata and controls
31 lines (28 loc) · 727 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
import adapter from '@sveltejs/adapter-static';
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: {
adapter: adapter({
// default options are shown
pages: 'build',
assets: 'build',
fallback: null
}),
paths: {
// YOUR github repository name
// base: process.env.NODE_ENV === 'production' ? '/sveltekit-watergis-template' : ''
base: ''
}
},
onwarn: () => {
const SKIP_DEPLOY_TO_GHPAGES = process.env.SKIP_DEPLOY_TO_GHPAGES;
if (SKIP_DEPLOY_TO_GHPAGES) {
return;
}
}
};
export default config;