fromis_9/frontend/vite.config.js
caadiq 7e9e51666a fix: 컨테이너 분리 후 프록시 설정 수정
- vite.config.js: localhost:3000 → fromis9-backend:80
- docker-compose.yml: depends_on, VITE_API_URL 수정

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 09:54:07 +09:00

21 lines
424 B
JavaScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
server: {
host: true,
port: 80,
allowedHosts: true,
proxy: {
"/api": {
target: "http://fromis9-backend:80",
changeOrigin: true,
},
"/docs": {
target: "http://fromis9-backend:80",
changeOrigin: true,
},
},
},
});