Dream-MachineProcurementList/vite.config.ts

27 lines
509 B
TypeScript
Raw Normal View History

2025-08-21 11:07:54 +08:00
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
port: 3003,
proxy: {
'/api': {
target: 'http://localhost:3004',
changeOrigin: true,
},
'/health': {
target: 'http://localhost:3004',
changeOrigin: true,
}
}
}
2025-08-21 11:07:54 +08:00
})