agilitycms-nextjs-starter icon indicating copy to clipboard operation
agilitycms-nextjs-starter copied to clipboard

Can we set `static` page routes for our pages, and then fallback to using the `[...slug].js`?

Open jamesvidler opened this issue 3 years ago • 0 comments

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...

jamesvidler avatar Mar 30 '21 20:03 jamesvidler