Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

fix: add 'keep-alive' header to healthcheck.tsx #197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/routes/healthcheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export const loader = async ({ request }: LoaderArgs) => {
// and make a HEAD request to ourselves, then we're good.
await Promise.all([
prisma.user.count(),
fetch(url.toString(), { method: "HEAD" }).then((r) => {
fetch(url.toString(), {
method: "HEAD",
headers: { connection: "keep-alive" },
}).then((r) => {
if (!r.ok) return Promise.reject(r);
}),
]);
Expand Down