fix for bug#6
Build & Push / Build & Push Docker Image (push) Failing after 2m42s

This commit is contained in:
root
2026-07-19 23:20:51 -04:00
parent a010ad6811
commit 9c526af996
5 changed files with 20 additions and 15 deletions
@@ -93,7 +93,7 @@ export function resolveAccessRedirect(currentPath: string, allowedRoutes: string
export function buildSignInRedirect(currentPath: string) {
const params = new URLSearchParams()
params.set('redirect', toPublicDashboardPath(currentPath))
return `/sign-in?${params.toString()}`
return `${toPublicDashboardPath('/sign-in')}?${params.toString()}`
}
export default function DashboardAccessGuard({ children }: { children: React.ReactNode }) {
@@ -147,7 +147,7 @@ export default function DashboardAccessGuard({ children }: { children: React.Rea
if (error?.statusCode === 401) {
const target = buildSignInRedirect(currentPath)
if (target !== currentPath) router.replace(target)
if (target !== toPublicDashboardPath(currentPath)) window.location.replace(target)
return
}