1
0
forked from baron/baron-sso

fix: 환경변수 USERFRONT_URL 직접 참조 및 SSO 경로(/ssologin) 수정 #243

This commit is contained in:
2026-02-11 14:57:32 +09:00
parent 2864a946f2
commit 3163514227
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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: {