Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to generate a new Page on a certain event (next.js)

I know the title is confusing, but basically, I want to generate a page on a certain event is triggered (i.e. a button is clicked).

For example, when you make an account on a service like twitter, how exactly does it generate a unique page for your profile (like https://www.twitter.com/exampleuser1234)? This has always confused me and I’d love an answer.

I have searched and scanned Google far and wide, and I could not find any clues at all.
I don’t even know how to start.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This is done using dynamic routes, e.g. /users/[id].

You can learn more in the documentation
https://nextjs.org/docs/routing/dynamic-routes

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading