[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:
Release Bot 2024-08-01 10:06:28 -07:00 committed by GitHub
parent 17871a4647
commit e1e2029d29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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' })
})
})