Pages

Pages are the essential part of a Next.js Template. You can add or modify pages as per your requirements. You can find all of the template pages inside /pages folder.

File-based Routing #

Since Next.js supports File-based Routing, you can add subfolders and create pages inside it and it would work without any extra configuration.

Eg: You can access website.com/company/careers if you created a careers page inside company folder like: /company/careers.js

Dynamic Pages #

Dynamic pages are named with square brackets. eg: [slug].js which is mandatory for next.js to work.