ConusAI vendor v0.1.0-dev.20261027+9b1131fb

This commit is contained in:
ConusAI vendor v0.1.0-dev.20261027+9b1131fb
2026-10-27 18:05:18 +00:00
commit f23f4e535d
159 changed files with 4293 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { sql } from 'drizzle-orm'
import { db, serverErrors, withRequest } from '@/shared/api'
// 200 when Postgres answers; the platform probes this path (health_check_path).
export const dynamic = 'force-dynamic'
export async function GET(request: Request) {
return withRequest(request, async () => {
try {
await db().execute(sql`select 1`)
return Response.json({ status: 'ok' })
} catch (error) {
serverErrors().captureException(error)
return Response.json({ status: 'unavailable' }, { status: 503 })
}
})
}