19 lines
400 B
TypeScript
19 lines
400 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/gsb/',
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 3000,
|
|
proxy: {
|
|
'/gsb/api': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true,
|
|
timeout: 300000,
|
|
rewrite: (path) => path.replace(/^\/gsb/, ''),
|
|
},
|
|
},
|
|
},
|
|
})
|