export const runtime = "nodejs"; export const dynamic = "force-dynamic"; const BGBYE_URL = process.env.BGBYE_URL || process.env.BG_BYE_URL || process.env.BGREMOVER_BASE_URL || "http://bgbye:7001"; export async function GET() { try { const r = await fetch(`${BGBYE_URL}/methods`, { cache: "no-store" }); const body = await r.text(); return new Response(body, { status: r.status, headers: { "content-type": r.headers.get("content-type") || "application/json" }, }); } catch { return new Response(JSON.stringify({ methods: [] }), { status: 200, headers: { "content-type": "application/json" }, }); } }