mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: better healthcheck
This commit is contained in:
parent
6cd1cf7e9c
commit
46f016f661
8 changed files with 112 additions and 9 deletions
|
|
@ -102,6 +102,11 @@ export default async function middleware(req: NextRequest) {
|
|||
return NextResponse.rewrite(redirectUrl)
|
||||
}
|
||||
|
||||
// Health Check
|
||||
if (pathname.startsWith('/health')) {
|
||||
return NextResponse.rewrite(new URL(`/api/health`, req.url))
|
||||
}
|
||||
|
||||
// Auth Redirects
|
||||
if (pathname == '/redirect_from_auth') {
|
||||
if (cookie_orgslug) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue