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 ThrowOnData({ message }) {
|
|
return (
|
|
<div>
|
|
<h1 className="title">Throw on data request</h1>
|
|
<p className={message}>{message}</p>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export const getServerSideProps = ({ query }) => ({
|
|
props: { message: query.message || '' },
|
|
})
|