From 3163514227ed1a7a9344c756a1fb2606c7cac5ee Mon Sep 17 00:00:00 2001 From: chan Date: Wed, 11 Feb 2026 14:57:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20U?= =?UTF-8?q?SERFRONT=5FURL=20=EC=A7=81=EC=A0=91=20=EC=B0=B8=EC=A1=B0=20?= =?UTF-8?q?=EB=B0=8F=20SSO=20=EA=B2=BD=EB=A1=9C(/ssologin)=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20#243?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminfront/src/features/auth/LoginPage.tsx | 4 ++-- adminfront/vite.config.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/adminfront/src/features/auth/LoginPage.tsx b/adminfront/src/features/auth/LoginPage.tsx index 233da28c..3e553d80 100644 --- a/adminfront/src/features/auth/LoginPage.tsx +++ b/adminfront/src/features/auth/LoginPage.tsx @@ -30,8 +30,8 @@ function LoginPage() { }, [navigate]); const handleSSOLogin = () => { - const userfrontUrl = import.meta.env.VITE_USERFRONT_URL || "https://sso.hmac.kr"; - const loginUrl = `${userfrontUrl}/login?source=adminfront`; + const userfrontUrl = import.meta.env.USERFRONT_URL || "https://sso.hmac.kr"; + const loginUrl = `${userfrontUrl}/ssologin?source=adminfront`; const width = 500; const height = 700; diff --git a/adminfront/vite.config.ts b/adminfront/vite.config.ts index 01b4be3a..30365be1 100644 --- a/adminfront/vite.config.ts +++ b/adminfront/vite.config.ts @@ -4,6 +4,7 @@ import { defineConfig } from "vite"; // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + envPrefix: ["VITE_", "USERFRONT_"], server: { host: "0.0.0.0", proxy: {