Skip to content

Commit

Permalink
remove healthcheck for user
Browse files Browse the repository at this point in the history
  • Loading branch information
scefali committed Jun 8, 2024
1 parent d026152 commit 5a172f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/routes/resources+/healthcheck.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// learn more: https://fly.io/docs/reference/configuration/#services-http_checks
import { type LoaderFunctionArgs } from '@remix-run/node'
import { prisma } from '#app/utils/db.server.ts'

export async function loader({ request }: LoaderFunctionArgs) {
const host =
Expand All @@ -10,7 +9,6 @@ export async function loader({ request }: LoaderFunctionArgs) {
// if we can connect to the database and make a simple query
// and make a HEAD request to ourselves, then we're good.
await Promise.all([
prisma.user.count(),
fetch(`${new URL(request.url).protocol}${host}`, {
method: 'HEAD',
headers: { 'X-Healthcheck': 'true' },
Expand Down

0 comments on commit 5a172f0

Please sign in to comment.