mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
`default` isn't a valid `region` at this point so this removes that. Fixes: https://github.com/vercel/next.js/actions/runs/5076047750/jobs/9118043860#step:6:469
11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
import { NextResponse } from 'next/server'
|
|
|
|
export const config = { runtime: 'edge', regions: 'auto' }
|
|
|
|
/**
|
|
* @param {import('next/server').NextRequest}
|
|
*/
|
|
export default (req) => {
|
|
return NextResponse.json(Object.fromEntries(req.nextUrl.searchParams))
|
|
}
|