In development with a custom server, cache page loads if page contents didn't change #10447
Unanswered
kanjieater
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature request
Is your feature request related to a problem? Please describe.
I'm using a custom express server inside an electron app. When I load the electron app I see
When I make a change to any file in the electron app (for example in the main process, which kicks off the server), the app restarts (with electron-reload), and it boots up the custom server again. I then see the exact same output.
If the server is restarted, Next.js is recompiling pages unnecessarily.
Describe the solution you'd like
Only compile pages if something relating to the server has changed, not on every restart of the server.
Describe alternatives you've considered
None are apparent to me currently, but I'm open to ideas.
Additional context
Reproduction steps:
Beta Was this translation helpful? Give feedback.
All reactions