Skip to content

Commit 17913a7

Browse files
committed
fix : 배포시 변수 설정이 제대로 되어있지 않아 발생하는 오류 수정
1 parent 2d49ef3 commit 17913a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frontend/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export default defineConfig({
8888
stdout: "pipe",
8989
stderr: "pipe",
9090
env: {
91+
NEXT_PUBLIC_BASE_URL: "http://localhost:4004",
9192
NODE_ENV: "test",
9293
PORT: "4008",
9394
EC2_PUBLIC_API_URL: "http://localhost:4008",

frontend/src/constants/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const COLOR_MODE_KEY = "theme-preference";
7474
const API_HOST =
7575
process.env.NODE_ENV === "test"
7676
? process.env.EC2_PUBLIC_API_URL || "http://localhost:4004"
77-
: process.env.VERCEL_URL
78-
? `${process.env.VERCEL_URL}/api/proxy`
77+
: process.env.NEXT_PUBLIC_BASE_URL
78+
? `${process.env.NEXT_PUBLIC_BASE_URL}/api/proxy`
7979
: process.env.EC2_PUBLIC_API_URL || "http://localhost:3000/api/proxy";
8080

8181
export { LIGHT_COLORS, DARK_COLORS, COLOR_MODE_KEY, API_HOST };

0 commit comments

Comments
 (0)