Skip to main content

Pages & Routes

Next.js has a built-in router that allows you to navigate between pages. This router is based on the file system:

├── [...slug]
│   └── page.js
├── admin
│   ├── [...slug]
│   │   └── page.js
│   └── page.js
├── favicon.ico
├── fonts
│   ├── GeistMonoVF.woff
│   └── GeistVF.woff
├── globals.css
├── layout.js
├── login
│   └── page.js
├── page.js
└── page.module.css

'use-server'

Mind, all pages are defaulted to be rendered server-side on the nodejs/nextjs server (usually a docker container or a serverless function).