forked from javedh-dev/tracktor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
39 lines (36 loc) · 979 Bytes
/
svelte.config.js
File metadata and controls
39 lines (36 loc) · 979 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
38
39
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
// Configure the adapter with environment-specific settings
out: 'build',
precompress: process.env.NODE_ENV === 'production',
envPrefix: ''
}),
paths: {
base: process.env.BASE_URL || ''
},
csrf: {
trustedOrigins: ['*']
},
env: {
publicPrefix: 'TRACKTOR_',
privatePrefix: ''
},
alias: {
$lib: './src/lib',
$ui: './src/lib/components/ui',
$appui: './src/lib/components/app',
$layout: './src/lib/components/layout',
$feature: './src/lib/components/feature',
$stores: './src/lib/stores',
$services: './src/lib/services',
$helper: './src/lib/helper',
$server: './src/server'
}
}
};
export default config;