From 7e9e51666ab07b6849294875ddff9a2fc8a147ae Mon Sep 17 00:00:00 2001 From: caadiq Date: Mon, 19 Jan 2026 09:54:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=BB=A8=ED=85=8C=EC=9D=B4=EB=84=88=20?= =?UTF-8?q?=EB=B6=84=EB=A6=AC=20=ED=9B=84=20=ED=94=84=EB=A1=9D=EC=8B=9C=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - vite.config.js: localhost:3000 → fromis9-backend:80 - docker-compose.yml: depends_on, VITE_API_URL 수정 Co-Authored-By: Claude Opus 4.5 --- docker-compose.yml | 4 ++-- frontend/vite.config.js | 14 ++------------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9c5ded3..1b447c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: labels: - "com.centurylinklabs.watchtower.enable=false" environment: - - VITE_API_URL=http://backend:3000 + - VITE_API_URL=http://fromis9-backend:80 # 개발 모드 volumes: - ./frontend:/app @@ -13,7 +13,7 @@ services: # 배포 모드 (사용 시 위 volumes를 주석처리) # volumes: [] depends_on: - - backend + - fromis9-backend networks: - app restart: unless-stopped diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 35b6f0b..fbbe8d1 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -8,24 +8,14 @@ export default defineConfig({ port: 80, allowedHosts: true, proxy: { - // 개발 모드 (localhost:3000) "/api": { - target: "http://localhost:3000", + target: "http://fromis9-backend:80", changeOrigin: true, }, "/docs": { - target: "http://localhost:3000", + target: "http://fromis9-backend:80", changeOrigin: true, }, - // 배포 모드 (사용 시 위를 주석처리) - // "/api": { - // target: "http://fromis9-backend:3000", - // changeOrigin: true, - // }, - // "/docs": { - // target: "http://fromis9-backend:3000", - // changeOrigin: true, - // }, }, }, });