2025-03-11 14:07:01 +03:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
2025-03-12 22:35:36 +03:00
|
|
|
target: 'http://192.168.0.208:8088',
|
2025-03-11 14:07:01 +03:00
|
|
|
changeOrigin: true,
|
2025-03-12 22:35:36 +03:00
|
|
|
rewrite: (path) => path.replace(/^\/net/, ''),
|
2025-03-11 14:07:01 +03:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-03-12 22:35:36 +03:00
|
|
|
base: '/net/',
|
2025-03-11 14:07:01 +03:00
|
|
|
plugins: [react()],
|
|
|
|
|
})
|