mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:12:02 +00:00
[Backport 5.5.x] fix(appliance): reliably redirect to site-admin post-install (#64220)
Backport e54407d9f5 from #64216
Co-authored-by: Craig Furman <craig.furman@sourcegraph.com>
This commit is contained in:
parent
17871a4647
commit
e1e2029d29
@ -38,7 +38,7 @@ const fetchStatus = async (lastContext: OutletContext): Promise<OutletContext> =
|
||||
onlineDate: lastContext.onlineDate ?? Date.now(),
|
||||
})
|
||||
} else {
|
||||
resolve({ online: false, onlineDate: undefined })
|
||||
resolve({ online: false, onlineDate: undefined, stage: 'refresh' })
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -53,7 +53,7 @@ const fetchStatus = async (lastContext: OutletContext): Promise<OutletContext> =
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
resolve({ online: false, onlineDate: undefined })
|
||||
resolve({ online: false, onlineDate: undefined, stage: 'refresh' })
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user