import type { VercelRequest, VercelResponse } from '@vercel/node';

export default function handler(req: VercelRequest, res: VercelResponse) {
    res.json({
        status: 'ok',
        message: 'Vercel API is alive',
        time: new Date().toISOString(),
        env_check: process.env.MONGODB_URI ? 'URI present' : 'URI MISSING'
    });
}
