nextjs-dynamic-routes icon indicating copy to clipboard operation
nextjs-dynamic-routes copied to clipboard

[Deprecated] Super simple way to create dynamic routes with Next.js

Results 5 nextjs-dynamic-routes issues
Sort by recently updated
recently updated
newest added

I used ``nextjs-dynamic-routes`` in my router. all links is worked, but before refresh page , Shows me **not found**. `````` --pages | |- -index | --blogs | | | |--index...

``` router.add({ name: 'register', pattern: '/register/:barcode?', page: '/register', }) ``` doing ``` router.replaceRoute('register', {}, { shallow: true }) ``` resulting in an address: ``` http://localhost:3000/register/ ``` Is it intentional ?...

enhancement

getMatchingRoute to return { name, page, pattern } instead of { page, pattern } currently

enhancement

Like in this branch: https://github.com/gvergnaud/nextjs-dynamic-routes/tree/use-pathtoregexp This way advanced URL patterns such as `:foo+` and `:digits(\d+)` can be supported. https://github.com/pillarjs/path-to-regexp#compile-reverse-path-to-regexp