17 lines
354 B
JavaScript
17 lines
354 B
JavaScript
|
|
import { defineConfig } from 'vite'
|
||
|
|
import react from '@vitejs/plugin-react'
|
||
|
|
|
||
|
|
// https://vite.dev/config/
|
||
|
|
export default defineConfig({
|
||
|
|
server: {
|
||
|
|
proxy: {
|
||
|
|
'/api': {
|
||
|
|
target: 'http://192.168.0.102:8088',
|
||
|
|
changeOrigin: true,
|
||
|
|
// rewrite: (path) => path.replace(/^\/api/, ''),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
plugins: [react()],
|
||
|
|
})
|