I am trying to create a component that renders in a Next.js app at path /users/:id/verify/:token.
I understand how to create a route for /users/:id
But I cant seem to understand how to add another /verify/:token onto the end of that route and show something
currently I have my pages set up like this

With dynamic routes You can use folders to catch all routes, like this.

then the route /users/12/verify/99 would give you id=12 and token=99 in useRouter
Was it something like that you were after?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With