d19e825daa
* add initial custom-routes handling * Add tests for custom-routes * Handle chained redirects, separate dev custom routes reading, and add version to routes manifest * Handle no routes manifest * Swap build custom routes calling * Add flatten-routes * Add flattening of custom routes * Re-work implementation to follow routes top-down * Add regex field to routes-manifest * Fix path-to-regexp match breaking after upgrade * Fix duplicate const from merge * Add some changes from review * Don't make path-match strict * add default custom route values * Update routes-manifest * Update options for path-match * Remove todo * Add test for rewrite with params * Only use strict mode for custom routes * Update dynamic-routing test * Move getCustomRoutes to prepare * Remove extra change * Update handling for error-in-error test * Apply suggestions from code review Co-Authored-By: Joe Haddad <joe.haddad@zeit.co> * Apply suggestions from review * Update slice change * Apply suggestions from code review Co-Authored-By: Joe Haddad <joe.haddad@zeit.co> * Apply suggestions from review * Fix TypeScript error * Fix getCustomRoutes in dev mode * Apply suggestions from code review * Update slice * Apply suggestions from code review Co-Authored-By: Joe Haddad <joe.haddad@zeit.co> * Delete un-used test page * Add test for param overwriting * Apply suggestions from code review Co-Authored-By: Joe Haddad <joe.haddad@zeit.co> * Add extra check to param test
10 lines
175 B
JavaScript
10 lines
175 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default () => (
|
|
<>
|
|
<h3 id='hello-again'>Hello again</h3>
|
|
<Link href='/nav'>
|
|
<a id='to-nav'>to nav</a>
|
|
</Link>
|
|
</>
|
|
)
|