-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use incremental cache during rendering #64
feat: use incremental cache during rendering #64
Conversation
commit: |
56127f5
to
193aa27
Compare
193aa27
to
78946b2
Compare
4906890
to
c8e492e
Compare
c8e492e
to
abdb2b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR.
The changes look great - could you please update the PR according to the comment?
packages/cloudflare/src/cli/build/patches/to-investigate/inline-middleware-manifest-require.ts
Outdated
Show resolved
Hide resolved
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for the updates!
Could you please update the name of the patches and this will be good to go
packages/cloudflare/src/cli/build/patches/to-investigate/inline-middleware-manifest-require.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again 🎉
Changes:
NEXT_PRIVATE_MINIMAL_MODE
env var.We currently enable the private version of minimal mode, alongside the public version of minimal mode. This is problematic as it is intended to be used by cloud providers when they have an additional layer on top of the worker that handles routing systems, cdn caching, static routes, etc.. That's why Vercel uses it. As a result, we're disabling specific behaviour without building our own system that will handle that.
There's two ways to look at this;
The option that is probably going to be easier to maintain and support in the long run is number 2 - disabling the internal minimal mode and just providing a custom cache handler that the incremental cache can use, which we are already partly doing.
Here's what happens in the base server when making a request to a route that is SSG/ISR.
The problem with using the private minimal mode for this is that the incremental cache is disabled in the response cache, blocking ssg/isr from functioning!