/* eslint-disable @typescript-eslint/no-explicit-any */ import { NextResponse } from 'next/server'; export const runtime = 'edge'; export async function GET() { try { return NextResponse.json({ status: 'ok', timestamp: new Date().toISOString(), runtime: 'edge', storageType: process.env.NEXT_PUBLIC_STORAGE_TYPE || 'localstorage', hasDB: !!(globalThis as any).DB, nodeEnv: process.env.NODE_ENV }); } catch (error) { return NextResponse.json({ error: 'Debug failed', message: error instanceof Error ? error.message : 'Unknown error' }, { status: 500 }); } }