2025-12-31 21:51:23 +09:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
server: {
|
|
|
|
|
host: true,
|
2026-01-18 18:53:57 +09:00
|
|
|
port: 80,
|
2026-01-05 11:20:44 +09:00
|
|
|
allowedHosts: true,
|
2026-01-01 10:20:54 +09:00
|
|
|
proxy: {
|
2026-01-18 18:53:57 +09:00
|
|
|
// 개발 모드 (localhost:3000)
|
2026-01-01 10:20:54 +09:00
|
|
|
"/api": {
|
2026-01-18 18:53:57 +09:00
|
|
|
target: "http://localhost:3000",
|
2026-01-01 10:20:54 +09:00
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
2026-01-18 18:53:57 +09:00
|
|
|
"/docs": {
|
|
|
|
|
target: "http://localhost:3000",
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
// 배포 모드 (사용 시 위를 주석처리)
|
|
|
|
|
// "/api": {
|
|
|
|
|
// target: "http://fromis9-backend:3000",
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
|
// },
|
|
|
|
|
// "/docs": {
|
|
|
|
|
// target: "http://fromis9-backend:3000",
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
|
// },
|
2026-01-01 10:20:54 +09:00
|
|
|
},
|
2025-12-31 21:51:23 +09:00
|
|
|
},
|
|
|
|
|
});
|