Remove edge runtime directive from route handler
Cloudflare Workers via OpenNext tidak support Next.js edge runtime. Hapus export const runtime = "edge" agar handler jalan di Workers runtime. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
765bcdca44
commit
75731af9b6
@@ -6,7 +6,6 @@ import {
|
|||||||
isAllowedTarget,
|
isAllowedTarget,
|
||||||
} from "@/lib/relay-utils";
|
} from "@/lib/relay-utils";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
async function handler(req: Request): Promise<Response> {
|
async function handler(req: Request): Promise<Response> {
|
||||||
if (req.method === "OPTIONS") {
|
if (req.method === "OPTIONS") {
|
||||||
|
|||||||
Reference in New Issue
Block a user