mirror of
https://github.com/orbien-org/orbien.git
synced 2026-09-22 16:01:32 +00:00
32 lines
732 B
TypeScript
32 lines
732 B
TypeScript
import {defineConfig} from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import {fileURLToPath, URL} from 'node:url'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
base: '/',
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8020',
|
|
changeOrigin: true,
|
|
},
|
|
'/healthz': {
|
|
target: 'http://127.0.0.1:8020',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: '../server/assets',
|
|
emptyOutDir: true,
|
|
assetsDir: 'assets',
|
|
},
|
|
})
|