b9865ba32e
* Add check: true behavior to custom routes * Update adding dev routes * Add checking of pages and dynamic routes for check: true * Fix hasPage binding * Add tests for check: true behavior * Update regex checking * Make changes based on review * Update to handle rewrites in serverless loader * Update to not change req.url * Make sure to always parse dynamic route params * Export all of pathToRegexp from path-match Co-authored-by: Joe Haddad <timer150@gmail.com>
11 lines
189 B
JavaScript
11 lines
189 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
const Page = () => (
|
|
<>
|
|
<p>post: {useRouter().query.post}</p>
|
|
</>
|
|
)
|
|
|
|
Page.getInitialProps = () => ({ hello: 'world' })
|
|
|
|
export default Page
|