o2o-negosium-original/lps-admin/vite.config.ts
민헌 992a3246a8 chore(lps-admin): 폴더명 lps-temp-fe → lps-admin
임시 FE 가 정식 관리자 콘솔이 되어 이름을 용도에 맞게 변경.
루트 병렬 유지(lps/ 는 파이썬 백엔드 루트라 중첩 시 비대칭 +
Docker 빌드 컨텍스트 오염). package.json name 동기화.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 22:07:30 +09:00

20 lines
681 B
TypeScript

import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
// dev 서버는 /v1·/healthz·/readyz 를 LPS API(:9600)로 프록시한다 — CORS 설정 불필요.
// 다른 API 호스트를 보려면 VITE_LPS_URL 로 대상 변경(또는 앱 내 설정에서 base URL 지정).
const target = process.env.VITE_LPS_URL || "http://localhost:9600";
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
port: 5174,
proxy: {
"/v1": { target, changeOrigin: true },
"/healthz": { target, changeOrigin: true },
"/readyz": { target, changeOrigin: true },
},
},
});