Skip to content

Commit

Permalink
Hit DB for healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemklee committed Jul 5, 2024
1 parent 76b5488 commit 07f35fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion keep_alive.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import https from 'node:https';

const keepAlive = () => {
Expand Down
6 changes: 5 additions & 1 deletion src/routes/api/healthcheck/+server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { json } from '@sveltejs/kit'

export async function GET() {
export async function GET({ locals: { supabase } }) {
await supabase
.from('accounts')
.select(`*`)

return json({
message: 'Server is up and running!'
})
Expand Down

0 comments on commit 07f35fd

Please sign in to comment.