Files

24 lines
653 B
TypeScript
Raw Permalink Normal View History

2026-03-21 00:40:28 +08:00
import { NextRequest, NextResponse } from "next/server";
import { proxyBackendJsonGet } from "@/lib/api-proxy";
2026-03-21 00:40:28 +08:00
const API_BASE = process.env.POLYWEATHER_API_BASE_URL;
export async function GET(req: NextRequest) {
if (!API_BASE) {
return NextResponse.json(
{ error: "POLYWEATHER_API_BASE_URL is not configured" },
{ status: 500 },
);
}
return proxyBackendJsonGet(req, {
cacheControl: "no-store",
conditionalResponse: false,
detailLimit: 500,
fetchCache: "no-store",
2026-05-29 17:22:33 +08:00
includeSupabaseIdentity: false,
publicMessage: "Failed to fetch payment runtime",
url: `${API_BASE}/api/payments/runtime`,
});
2026-03-21 00:40:28 +08:00
}