How to only publish certain routes

Hello, I have some routes that are still in draft phase, while some are ready to be published, but when I do a build using nextjs, all of the routes are being built, whereas I may only want 1 or 2 completed routes to be built, is there anyway to do this? Thanks!

You can hide a page by prefixing the name with an underscore, like _MyHiddenPage.

Awesome thank you!

1 Like