18 lines
423 B
TypeScript
18 lines
423 B
TypeScript
![]() |
import {defineConfig} from 'vite'
|
||
|
import react from '@vitejs/plugin-react-swc'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [react()],
|
||
|
server: {
|
||
|
host: true,
|
||
|
proxy: {
|
||
|
'/api': {
|
||
|
target: 'http://101.35.127.74:3000',
|
||
|
changeOrigin: true,
|
||
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
})
|