-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsvelte.config.js
More file actions
37 lines (32 loc) · 823 Bytes
/
svelte.config.js
File metadata and controls
37 lines (32 loc) · 823 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
36
37
import adapterAuto from '@sveltejs/adapter-auto';
import adapterStatic from '@sveltejs/adapter-static';
import preprocess from "svelte-preprocess";
const isProduction = process.env.NODE_ENV === 'production';
console.log("isProduction", isProduction);
const config = {
preprocess: preprocess(),
kit: {
adapter: isProduction
? adapterStatic({
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false
})
: adapterAuto(),
alias: {
$stores: "src/stores",
$components: "src/lib/components",
$shared: "src/lib/components/shared",
$images: "src/lib/static/images",
$types: "src/lib/types",
$customIcons: "src/lib/static/customIcons",
$src: "src",
$debug: "src/debug",
},
csrf: {
checkOrigin: false,
}
}
};
export default config;