forked from wangziqi/gongxue-base
chore: configure dev ports (backend:3001, frontend:3000 + proxy)
This commit is contained in:
@@ -4,6 +4,15 @@ import react from '@vitejs/plugin-react'
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3001',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
'dayjs',
|
||||
|
||||
Reference in New Issue
Block a user