import{i as e}from"./db-CtpKtLAv.js";var t=`force-dynamic`;async function n(){try{let t=await(await e()).prepare(`SELECT COUNT(*) AS count FROM posts`).first();return Response.json({status:`ok`,service:`gapido-website`,database:`ready`,newsCount:t?.count||0},{headers:{"Cache-Control":`no-store`}})}catch{return Response.json({status:`error`,service:`gapido-website`,database:`unavailable`},{status:503,headers:{"Cache-Control":`no-store`}})}}export{n as GET,t as dynamic};