[feature request] Excluding pages from build #17271
OlehDutchenko
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
You could run a script that removes unwanted pages before building the app |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have a similar need with "template" pages, meant for developers to create a new page faster with proper defaults and documentation. I do not need to build those pages, ever, and they shouldn't be available online. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
Excluding pages from build
Is your feature request related to a problem? Please describe.
I want to have some tool to exlude some unwanted pages on build.
My use case:
I have demo page:
pages/ui-kit
.This page for developers and this route is availible on our testing platform.
But I do not need this route on production domain. And I do not need unnecessary code of this examples on production
Describe the solution you'd like
It would be great to have some field in
next.config.js
for excluding unwanted pages and ignore them (and their codebase) in build.example:
Describe alternatives you've considered
My solution for now is
redirect
field innext.config.js
But still the final build will contain unnecessary files of examples from
ui-kit
.Beta Was this translation helpful? Give feedback.
All reactions