mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Update to process redirects/rewrites for _next/data * correct matched-path resolving with middleware * Add next-data header * migrate middleware tests * lint-fix * update error case * update test case * Handle additional resolving cases and add more tests * update test from merge * fix test * rm .only * apply changes from review * ensure _next/data resolving does not apply without middleware
13 lines
259 B
JavaScript
13 lines
259 B
JavaScript
export const getServerSideProps = ({ params, query }) => {
|
|
return { props: { params, query } }
|
|
}
|
|
|
|
export default function Page({ params: { param }, query: { qp } }) {
|
|
return (
|
|
<>
|
|
<p id="props">{param}</p>
|
|
<p id="qp">{qp}</p>
|
|
</>
|
|
)
|
|
}
|