Skip to content

Commit

Permalink
fix(cloudflare): 配置运行时
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Apr 3, 2024
1 parent ccf101a commit 44c9a1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/login/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'server-only'
import { NextRequest } from 'next/server'

export const runtime = 'edge'

export async function POST(request: NextRequest) {
const res = await request.json()
console.log(res)
Expand Down

0 comments on commit 44c9a1e

Please sign in to comment.