A clear and concise description of what you want and what your use case is.
Currently with nextjs9 we can make routes like
root/city/[id].js
root/city/[id]/details.js
this cool.
But we can't make routes like:
root/city-[id]/details.js
Add any other context or screenshots about the feature request here.
@Timer #7607 seems related but there is more :
Next.js9 use path-to-regexp) for routing and i just wondering why in nextjs we cant build folder slugs like :
/ads/[art-:id]/details/[location]
/ads/[auto-:id]/details/[location]
/ads/[home-:id]//details/[location]
this will cause a error :
throw new Error('You cannot use different slug names
for the same dynamic path.');
but we can use same patterns in express.js with path-to-regexp ,
Duplicate of #9081
Most helpful comment
@Timer #7607 seems related but there is more :
Next.js9 use path-to-regexp) for routing and i just wondering why in nextjs we cant build folder slugs like :
this will cause a error :
throw new Error('You cannot use different slug names
for the same dynamic path.');
but we can use same patterns in express.js with path-to-regexp ,