20 lines
439 B
TypeScript
20 lines
439 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
// base:'/admin/',
|
|
server: {
|
|
// host: '0.0.0.0',
|
|
port: 8080,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://zxjt.86698.cn',//'http://127.0.0.1:8099',//
|
|
changeOrigin: true,
|
|
// rewrite: (path) => path.replace(/^\/api/, '')
|
|
},
|
|
}
|
|
},
|
|
})
|