diff --git a/app/api/config/route.ts b/app/api/config/route.ts index 62b84c2ea..62c8d60fb 100644 --- a/app/api/config/route.ts +++ b/app/api/config/route.ts @@ -15,8 +15,11 @@ declare global { type DangerConfig = typeof DANGER_CONFIG; } -export async function POST() { +async function handle() { return NextResponse.json(DANGER_CONFIG); } +export const GET = handle; +export const POST = handle; + export const runtime = "edge"; diff --git a/next.config.mjs b/next.config.mjs index 2a96df23e..25770318b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -16,7 +16,9 @@ const nextConfig = { }); } - return ret; + return { + afterFiles: ret, + }; }, webpack(config) { config.module.rules.push({