forked from baron/baron-sso
fix: 환경변수 USERFRONT_URL 직접 참조 및 SSO 경로(/ssologin) 수정 #243
This commit is contained in:
@@ -30,8 +30,8 @@ function LoginPage() {
|
|||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
const handleSSOLogin = () => {
|
const handleSSOLogin = () => {
|
||||||
const userfrontUrl = import.meta.env.VITE_USERFRONT_URL || "https://sso.hmac.kr";
|
const userfrontUrl = import.meta.env.USERFRONT_URL || "https://sso.hmac.kr";
|
||||||
const loginUrl = `${userfrontUrl}/login?source=adminfront`;
|
const loginUrl = `${userfrontUrl}/ssologin?source=adminfront`;
|
||||||
|
|
||||||
const width = 500;
|
const width = 500;
|
||||||
const height = 700;
|
const height = 700;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { defineConfig } from "vite";
|
|||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
envPrefix: ["VITE_", "USERFRONT_"],
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|||||||
Reference in New Issue
Block a user