mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Ensures we have coverage for edge API routes in pages so we don't regress. Closes: https://github.com/vercel/next.js/issues/48263
13 lines
229 B
JavaScript
13 lines
229 B
JavaScript
export const config = {
|
|
runtime: 'edge',
|
|
}
|
|
|
|
export default async function handler(req) {
|
|
return new Response(
|
|
JSON.stringify({
|
|
hello: 'world',
|
|
query: Object.fromEntries(req.nextUrl.searchParams),
|
|
})
|
|
)
|
|
}
|