Replies: 7 comments 5 replies
-
Do you mean the This lets you skip static page generation and defer it until the first user hits a certain page, showing a fallback page for the first user, and then always show a static page (with optional regeneration). Please see the docs for more information: https://nextjs.org/docs/api-reference/data-fetching/get-static-paths#fallback-true |
Beta Was this translation helpful? Give feedback.
-
I would rather not running |
Beta Was this translation helpful? Give feedback.
-
How do you guys build when you could not connect to database(in develop environment)? |
Beta Was this translation helpful? Give feedback.
-
i'm having a similar issue. i was planning on pulling a large list of paths dynamically from a cms to prebuild and return the list from the full build could be delayed til after deploy, but it's a bit odd to have nothing to serve at deploy time and it would lead to a brief period where client requests fail
it would be great to be able to build the core files needed to serve requests during build, deploy the instance, then prebuild all static paths in the background this would solve op's issue too i believe: on dev, build only core files; on prod, build static pages after core files |
Beta Was this translation helpful? Give feedback.
-
i'm thinking for now the best option is to use |
Beta Was this translation helpful? Give feedback.
-
This is still not a way to use static pages in my app even in appdir because of this. |
Beta Was this translation helpful? Give feedback.
-
I am building an admin panel, so I do not need static page builds. I am using AppRouter, but sometimes it is automatically determined as static due to dynamic detection. To address this, I have added export However, since RouteHandlers do not allow for shared processing, I have to add It would be convenient if there was a setting to specify the build mode for the entire app. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
I wish there will be a config to disable building static pages when I build the project.
But I with It could run first time on the server or when revalidate is timeout.
The reason is: I can not connect to the data server when I build the project.
And I could not build the pages on the server manually.
Describe the solution you'd like
If there is an option to disabled this would be nice, maybe could be a build option with command
next build
Describe alternatives you've considered
Or could be a flag in .env
Beta Was this translation helpful? Give feedback.
All reactions