From abcc90e39437d0e950a19ad86d2e044df564d7da Mon Sep 17 00:00:00 2001 From: juno Date: Fri, 13 Feb 2026 01:20:40 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Cloud=20Run=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=EB=8D=95=EC=85=98=20URL=20=EC=A0=81=EC=9A=A9=20=EB=B0=8F=20env?= =?UTF-8?q?=20=EC=98=88=EC=8B=9C=20=ED=8C=8C=EC=9D=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - api.ts에 실제 Cloud Run 서비스 URL 반영 (asia-northeast3) - api/.env.example, web/.env.example 삭제 --- api/.env.example | 22 ---------------------- web/.env.example | 8 -------- web/src/constants/api.ts | 4 ++-- 3 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 api/.env.example delete mode 100644 web/.env.example diff --git a/api/.env.example b/api/.env.example deleted file mode 100644 index e5ad3ab..0000000 --- a/api/.env.example +++ /dev/null @@ -1,22 +0,0 @@ -# Database -DB_URL=jdbc:postgresql://host:5432/postgres?sslmode=require -DB_USERNAME=postgres -DB_PASSWORD= - -# Redis -REDIS_URL=rediss://default:PASSWORD@host:6379 - -# CORS (콤마 구분, 프로덕션: 프론트엔드 Cloud Run URL) -CORS_ALLOWED_ORIGINS=http://localhost:3000 - -# Video -VIDEO_PROCESSOR_ENABLED=true -FFMPEG_PATH=/opt/homebrew/bin/ffmpeg - -# Gemini -GOOGLE_GEMINI_API_KEY= -GEMINI_MODEL=gemini-2.5-flash - -# Session -SESSION_EXPIRES_IN_DAYS=7 -SESSION_CACHE_TTL_SECONDS=300 diff --git a/web/.env.example b/web/.env.example deleted file mode 100644 index 2eb5643..0000000 --- a/web/.env.example +++ /dev/null @@ -1,8 +0,0 @@ -# API -NEXT_PUBLIC_API_URL=http://localhost:8080 -NEXT_PUBLIC_WEB_URL=http://localhost:3000 - -# Better-Auth -BETTER_AUTH_SECRET= -BETTER_AUTH_URL=http://localhost:3000 -DATABASE_URL=postgresql://user:password@host:6543/postgres diff --git a/web/src/constants/api.ts b/web/src/constants/api.ts index 819884d..17e1bae 100644 --- a/web/src/constants/api.ts +++ b/web/src/constants/api.ts @@ -1,8 +1,8 @@ const isProd = process.env.NODE_ENV === "production"; /** Cloud Run 배포 후 실제 서비스 URL로 교체 (GCP Console > Cloud Run > 서비스 URL 확인) */ -const PROD_API_URL = "https://lms-api-xxxxx-xx.a.run.app"; -const PROD_WEB_URL = "https://lms-web-xxxxx-xx.a.run.app"; +const PROD_API_URL = "https://lms-api-342883012014.asia-northeast3.run.app"; +const PROD_WEB_URL = "https://lms-web-342883012014.asia-northeast3.run.app"; export const API_URL = isProd ? PROD_API_URL : "http://localhost:8080"; export const AUTH_CLIENT_BASE_URL = isProd ? PROD_WEB_URL : "http://localhost:3000";