diff --git a/src/pages/api/trpc/[trpc].ts b/src/pages/api/trpc/[trpc].ts index 99293098..3fa08b3e 100644 --- a/src/pages/api/trpc/[trpc].ts +++ b/src/pages/api/trpc/[trpc].ts @@ -22,6 +22,7 @@ export default async function handler(req: NextRequest) { }); } -export const runtime = "edge"; -export const preferredRegion = "lhr1"; -export const dynamic = "force-dynamic"; +export const config = { + runtime: "edge", + regions: ["lhr1"], +};