import { NextResponse } from "next/server"; import { listProviders } from "@/lib/weather/providers"; // Read env vars per request so adding a key doesn't require a rebuild. export const dynamic = "force-dynamic"; /** GET /api/providers → which providers exist and which have keys configured. */ export function GET() { return NextResponse.json(listProviders()); }