mirror of
https://github.com/hanzoai/base.git
synced 2026-10-21 03:41:50 +00:00
29 lines
533 B
TypeScript
29 lines
533 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/_/',
|
|
resolve: {
|
|
alias: { '~': '/src' },
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
output: { manualChunks: undefined },
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': 'http://localhost:8090',
|
|
'/realtime': {
|
|
target: 'http://localhost:8090',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
})
|