From 91e4f987eac625ec89924f2eea241f55529dd0bd Mon Sep 17 00:00:00 2001 From: Hyang-Dan Date: Sat, 6 Dec 2025 00:20:05 +0900 Subject: [PATCH] =?UTF-8?q?issue=20#=20-=20=EC=84=9C=EB=B2=84=20=ED=98=B8?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=200.0.0.0=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.local | 1 + src/main.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.local b/.env.local index d88e4d5..55d51c8 100644 --- a/.env.local +++ b/.env.local @@ -1,3 +1,4 @@ +HOST=0.0.0.0 PORT=3000 # PostgreSQL 설정 diff --git a/src/main.ts b/src/main.ts index c0cfa21..b4f2c3b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,7 +17,7 @@ async function bootstrap() { if (!origin) return callback(null, true); // 특정 도메인만 막고 싶은 경우 whitelist 가능 - const whitelist = ["http://localhost:5173", "https://scheduler.bkdhome.p-e.kr"]; + const whitelist = ["http://localhost:5173", "http://192.168.219.105:5185", "https://scheduler.bkdhome.p-e.kr"]; if (whitelist.includes(origin)) { return callback(null, true); } @@ -30,7 +30,7 @@ async function bootstrap() { app.enableShutdownHooks(); app.useGlobalFilters(new AllExceptionsFilter()); - await app.listen(process.env.PORT ?? 3000, () => { process.env.NODE_ENV !== 'prod' && console.log(`servier is running on ${process.env.PORT}`) }); + await app.listen(process.env.PORT ?? 3000, '0.0.0.0', () => { process.env.NODE_ENV !== 'prod' && console.log(`servier is running on ${process.env.PORT}`) }); } bootstrap();