mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 05:45:02 +00:00
Fix API_URL/API_DOMAIN usage in dashboard
This commit is contained in:
parent
122f535e34
commit
bc250209d8
4 changed files with 7 additions and 7 deletions
dashboard/src
|
@ -11,7 +11,7 @@ const isAuthenticated = async () => {
|
|||
|
||||
export const authGuard: NavigationGuard = async (to, from, next) => {
|
||||
if (await isAuthenticated()) return next();
|
||||
window.location.href = `${process.env.API_URL}/auth/login`;
|
||||
window.location.href = `https://${process.env.API_DOMAIN}/auth/login`;
|
||||
};
|
||||
|
||||
export const loginCallbackGuard: NavigationGuard = async (to, from, next) => {
|
||||
|
@ -25,5 +25,5 @@ export const loginCallbackGuard: NavigationGuard = async (to, from, next) => {
|
|||
|
||||
export const authRedirectGuard: NavigationGuard = async (to, form, next) => {
|
||||
if (await isAuthenticated()) return next("/dashboard");
|
||||
window.location.href = `${process.env.API_URL}/auth/login`;
|
||||
window.location.href = `https://${process.env.API_DOMAIN}/auth/login`;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue