agilitycms-nextjs-starter
agilitycms-nextjs-starter copied to clipboard
Can we set `static` page routes for our pages, and then fallback to using the `[...slug].js`?
Some developers are confused as to how the pages are working since we have one catch-all page route. Is it possible to set up static page routes for our pages as an example.
So for example, there would be a index.js
, blog.js
page and about.js
page that would have comments in there that explain these use the catch-all [...slug].js
.
That way, if someone is looking for a page by name they are directed to where the REAL logic lies...