Skip to content

Commit

Permalink
feat(healthz): change route from frontend to (nuxt) backend
Browse files Browse the repository at this point in the history
To reduce `payload size` for `loadbalancer`, as we do not send useless `html`
anymore. The `loadbalancer` checks every `2min` if the `application` is
reachable.
  • Loading branch information
marcel-bitfly committed Nov 20, 2024
1 parent e30eee1 commit 4d6992d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"feature-flags",
"git",
"git-blame-ignore",
"healthz",
"i18n",
"mainHeader",
"middleware",
Expand Down
3 changes: 0 additions & 3 deletions frontend/pages/healthz.vue

This file was deleted.

6 changes: 6 additions & 0 deletions frontend/server/routes/healthz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default defineEventHandler(() => {
// this endpoint is used for the `loadbalancer` to check if the server is up (status 200)
return {
status: 'ok',
}
})

0 comments on commit 4d6992d

Please sign in to comment.