UNPKG
@nadeshikon/plugin-nextjs
Version:
latest (4.29.5-4)
4.29.5
4.29.5-4
4.29.5-3
4.29.5-2
4.29.5-1
Run Next.js seamlessly on Netlify
github.com/netlify/next-runtime
netlify/next-runtime
@nadeshikon/plugin-nextjs
/
test
/
e2e
/
modified-tests
/
middleware-general
/
app
/
pages
/
api
/
edge-search-params.js
11 lines
(8 loc)
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
NextResponse
}
from
'next/server'
export
const
config = {
runtime
:
'experimental-edge'
,
regions
:
'default'
}
/** *
@param
{
import('next/server').NextRequest
} */
export
default
(req) => {
return
NextResponse
.
json
(
Object
.
fromEntries
(req.
nextUrl
.
searchParams
)) }