Files
training/frontend/vite.config.mjs

17 lines
303 B
JavaScript
Raw Permalink Normal View History

2026-07-27 23:20:12 +08:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: '127.0.0.1',
port: 5173,
proxy: {
'/api': {
target: 'http://127.0.0.1:8080',
changeOrigin: true,
},
},
},
})