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
24 lines
392 B
JavaScript
24 lines
392 B
JavaScript
export const config = {
|
|
runtime: 'experimental-edge',
|
|
}
|
|
|
|
export default function Page(props) {
|
|
return (
|
|
<>
|
|
<p id="page">/index</p>
|
|
<p id="props">{JSON.stringify(props)}</p>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export function getServerSideProps({ req, params, query }) {
|
|
return {
|
|
props: {
|
|
url: req.url,
|
|
query,
|
|
now: Date.now(),
|
|
params: params || null,
|
|
},
|
|
}
|
|
}
|