From 992af63b5b845f5f8897495c97356970aa01e257 Mon Sep 17 00:00:00 2001 From: Visal In Date: Sat, 20 Jul 2024 15:42:12 +0900 Subject: [PATCH] feat: make the proxy running on edge --- src/app/proxy/d1/route.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/proxy/d1/route.ts b/src/app/proxy/d1/route.ts index 8c4163b1..629c2cfa 100644 --- a/src/app/proxy/d1/route.ts +++ b/src/app/proxy/d1/route.ts @@ -2,6 +2,8 @@ import { HttpStatus } from "@/constants/http-status"; import { headers } from "next/headers"; import { NextRequest, NextResponse } from "next/server"; +export const runtime = "edge"; + export async function POST(req: NextRequest) { // Get the account id and database id from header const accountId = headers().get("x-account-id");