From 0bf2484e8d6b889d1734a6a78ea590d0fa4d9883 Mon Sep 17 00:00:00 2001 From: yschoi Date: Thu, 10 Jul 2025 17:13:48 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=9A=B4=EC=98=81=ED=99=98=EA=B2=BD=20env?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/.env.production | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 apps/sn/.env.production diff --git a/apps/sn/.env.production b/apps/sn/.env.production new file mode 100644 index 000000000..fab02e36c --- /dev/null +++ b/apps/sn/.env.production @@ -0,0 +1,12 @@ +NEXT_PUBLIC_SITE_ID = SN +NEXT_PUBLIC_PORT = 11302 +NEXT_PUBLIC_PROXY_HOST = http://con.mind-one.co.kr:11302 +NEXT_PUBLIC_SERVER_API_URL = http://dev.onasys.co.kr:8000 +NEXT_PUBLIC_GEOSERVER_URL = http://rsone.iptime.org:10010/geoserver +NEXT_PUBLIC_LX_GEOSERVER_URL = http://con.mind-one.co.kr:11306/geoserver #TODO 운영에서 바꿔야 함 +NEXT_PUBLIC_CLAIM_NAME = Authorization +NEXT_PUBLIC_AUTH_USER_ID = token-id +NEXT_PUBLIC_ACCESS_TOKEN = access-token +NEXT_PUBLIC_REFRESH_TOKEN = refresh-token + +NEXT_PUBLIC_SEWERAGE_API_URL=http://con.mind-one.co.kr:11083/sewerage-service/api # 개발 서버 API From ed368160a2d27a7c1e41568309f1650b464a1c80 Mon Sep 17 00:00:00 2001 From: yschoi Date: Thu, 10 Jul 2025 17:18:00 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EC=A3=BC=EC=84=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/src/entities/auth/lib/auth-wrapper.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sn/src/entities/auth/lib/auth-wrapper.tsx b/apps/sn/src/entities/auth/lib/auth-wrapper.tsx index 75744f66e..8b43459d9 100644 --- a/apps/sn/src/entities/auth/lib/auth-wrapper.tsx +++ b/apps/sn/src/entities/auth/lib/auth-wrapper.tsx @@ -40,6 +40,7 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => { } catch (refreshError) { console.error("Token refresh failed:", refreshError); setUserInfo(null); + //TODO 권한체크 실패시 로직 들어가야 함. //router.push("/"); } } From 4294f3c87865d0dda05b30069024397ab9b32f29 Mon Sep 17 00:00:00 2001 From: yschoi Date: Thu, 10 Jul 2025 21:02:23 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EC=97=86=EC=9D=84?= =?UTF-8?q?=EB=95=8C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=90=98=EA=B2=8C=20?= =?UTF-8?q?=ED=99=88=EC=9C=BC=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/src/entities/auth/lib/auth-wrapper.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/sn/src/entities/auth/lib/auth-wrapper.tsx b/apps/sn/src/entities/auth/lib/auth-wrapper.tsx index 8b43459d9..f0710e249 100644 --- a/apps/sn/src/entities/auth/lib/auth-wrapper.tsx +++ b/apps/sn/src/entities/auth/lib/auth-wrapper.tsx @@ -40,8 +40,7 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => { } catch (refreshError) { console.error("Token refresh failed:", refreshError); setUserInfo(null); - //TODO 권한체크 실패시 로직 들어가야 함. - //router.push("/"); + router.push("/"); } } })();