initial commit
This commit is contained in:
commit
155aa524f3
48 changed files with 3943 additions and 0 deletions
30
vite.config.ts
Normal file
30
vite.config.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import { configDotenv } from 'dotenv';
|
||||
|
||||
configDotenv();
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
server: {
|
||||
port: +(process.env.PORT || 5173),
|
||||
proxy: {
|
||||
'/v1/': {
|
||||
target: process.env.BACKEND_URL,
|
||||
xfwd: true,
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
},
|
||||
'/admin/': {
|
||||
target: process.env.BACKEND_URL,
|
||||
changeOrigin: true,
|
||||
xfwd: true
|
||||
},
|
||||
'/report/': {
|
||||
target: process.env.BACKEND_URL,
|
||||
changeOrigin: true,
|
||||
xfwd: true
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue