← Back to all posts

Next.js File-Based Routing

2026-09-10
In the App Router, the folder structure IS your routing. - app/page.js -> / - app/blog/[slug]/page.js -> /blog/anything The square brackets make a "dynamic" segment. Whatever you put in the URL becomes a parameter your page can read.