-
Notifications
You must be signed in to change notification settings - Fork 89
feat: implemented incremental cache #2288
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: implemented incremental cache #2288
Conversation
❌ Deploy Preview for netlify-plugin-nextjs-next-auth-demo failed.
|
❌ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo failed.
|
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for next-plugin-edge-middleware failed.
|
❌ Deploy Preview for netlify-plugin-nextjs-static-root-demo failed.
|
✅ Deploy Preview for next-i18next-demo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for next-plugin-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for nextjs-plugin-custom-routes-demo failed.
|
❌ Deploy Preview for netlify-plugin-nextjs-demo failed.
|
@@ -0,0 +1,34 @@ | |||
import type { Blobs } from '@netlify/blobs/dist/src/main' |
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.
This and memoize won't end up being part of this PR as they're already in #2287.
❌ Deploy Preview for netlify-plugin-nextjs-demo-all-flags failed.
|
demos/default/next.config.js
Outdated
@@ -89,5 +89,6 @@ module.exports = { | |||
}, | |||
experimental: { | |||
optimizeCss: false, | |||
incrementalCacheHandlerPath: require.resolve('./cache-handler.js'), |
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.
This won't be hard-coded. This is hard-coded for the moment for testing purposes. The real implementation will need to generate this and modify the Next.js config, pre-build.
demos/default/cache-handler.js
Outdated
@@ -0,0 +1,19 @@ | |||
const cache = new Map() |
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.
This uses an in memory cache for the moment for debugging purposes to see key and values in the cache.
fc7a91a
to
f316e5f
Compare
I merged this branch into #2287. |
Description
Documentation
Tests
You can test this change yourself like so:
Relevant links (GitHub issues, etc.) or a picture of cute animal
Fixes
Fixes https://github.com/netlify/pod-ecosystem-frameworks/issues/568