-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
executable file
·40 lines (39 loc) · 937 Bytes
/
Copy pathvite.config.ts
File metadata and controls
executable file
·40 lines (39 loc) · 937 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
40
import { defineConfig, loadEnv } from 'vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import Icons from 'unplugin-icons/vite';
import { sentrySvelteKit } from '@sentry/sveltekit';
// import basicSsl from '@vitejs/plugin-basic-ssl';
export default defineConfig(({ command, mode }) => {
const env = loadEnv(mode, process.cwd(), '');
return {
define: {
'process.env': env,
},
server: {
port: 5000,
strictPort: true,
// hmr: {
// clientPort: 5000,
// port: 5001,
// },
// watch: {
// usePolling: true,
// },
// proxy: {
// "/api": "https://www.buxfer.com",
// },
},
plugins: [
sentrySvelteKit({
sourceMapsUploadOptions: {
org: 'self-qw6',
project: 'finanzen',
},
}),
sveltekit(),
Icons({ compiler: 'svelte', autoInstall: true }),
nodePolyfills({ include: ['stream'] }),
],
};
});