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
286 B
JavaScript
13 lines
286 B
JavaScript
export default function ClearQueryParams(props) {
|
|
return <pre id="my-query-params">{JSON.stringify(props.query)}</pre>
|
|
}
|
|
|
|
/** @type {import('next').GetServerSideProps} */
|
|
export const getServerSideProps = (req) => {
|
|
return {
|
|
props: {
|
|
query: { ...req.query },
|
|
},
|
|
}
|
|
}
|