Skip to content

Commit

Permalink
fix: health endpoint should work with BASE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
esroyo committed Jan 21, 2025
1 parent 8a391dc commit 6a0262f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ const routes: Route[] = [
pattern: new URLPattern({ pathname: '/_health' }),
handler: () => new Response(null, { status: 204 }),
},
{
pattern: new URLPattern({ pathname: `${basePathWithSlash}_health` }),
handler: () => new Response(null, { status: 204 }),
},
{
pattern: new URLPattern({ pathname: config.BASE_PATH }),
handler: homeHandler,
Expand Down

0 comments on commit 6a0262f

Please sign in to comment.