From 8bffad0873014bf32367c979902d488514a4d93b Mon Sep 17 00:00:00 2001 From: besscroft Date: Wed, 3 Apr 2024 18:50:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E5=8C=96=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E8=BF=90=E8=A1=8C=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/login/route.ts | 1 - next.config.mjs | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/api/login/route.ts b/app/api/login/route.ts index 5afce6d..2af9d2a 100644 --- a/app/api/login/route.ts +++ b/app/api/login/route.ts @@ -1,7 +1,6 @@ import 'server-only' import { NextRequest } from 'next/server' -export const runtime = 'edge' export async function POST(request: NextRequest) { const res = await request.json() diff --git a/next.config.mjs b/next.config.mjs index 4678774..03ae5e2 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + experimental: { + runtime: 'edge', // Function Runtime, 'nodejs' (default) | 'edge' + }, +}; export default nextConfig;