A "next dev" option/mode, to compile all pages at once #51672
Replies: 8 comments 1 reply
-
this feature request comes from the follow issue #6554 |
Beta Was this translation helpful? Give feedback.
-
A hybrid option would be nice. Compile pages as fast as possible, starting with those requested by the client. |
Beta Was this translation helpful? Give feedback.
-
I just ran into a different use case for this feature. I'm prototyping some REST calls using a mock Then, I have an Obviously, this interferes with mocking my rest calls. Sure, I'll eventually be using tests, but I'm just prototyping right now, and it's frustrating that I have to make a request to both Maybe I'm missing something. |
Beta Was this translation helpful? Give feedback.
-
I agree, we need some kind of option in dev script to atleast specify the pages to be compiled beforehand, if not all of them. |
Beta Was this translation helpful? Give feedback.
-
Agree with this one. I'm currently running Playwright with the dev server, and navigating between pages causes timeouts from Playwright's side. Bumping the timeout fixes it sort of, but would be nice not to have this issue at all. |
Beta Was this translation helpful? Give feedback.
-
This would be very nice. Currently struggling with some pretty annoying issues like caddy giving a 502 because my next-auth page doesnt compile fast enough in dev mode. A feature flag to precompile in dev mode would be very neat and highly appreciated 👍 |
Beta Was this translation helpful? Give feedback.
-
I'd love this as well. I wonder if there's some weird or hacky way to do this using old fashioned
Definitely hacky, but might get the job done? |
Beta Was this translation helpful? Give feedback.
-
I'd love to see this. Currently, I just hit all the pages when I restart the dev server but this is not optimal for DX. I have a beefy CPU so I'd like an option to just compile all pages in the background |
Beta Was this translation helpful? Give feedback.
-
Goals
next dev
, that compiles all the pages, inside the app directory, at once, instead of compiling on each request. This could be something likenext dev --compile-all-pages
for example.Non-Goals
Background
This feature is needed, because at least by me.. I'm having a very bad developer experience, when I need to navigate in many, or more than one pages in my application.
I understand the reasons, but, whats the matter on provide an option to compile all the pages? Some developers may prefer to wait until all the pages compile only once, instead of wait on the compile every single time.
Proposal
Maybe implement a flag to
next dev
understand that it's supposed to compile all the pagesBeta Was this translation helpful? Give feedback.
All reactions