Replies: 1 comment 3 replies
-
Yeah, it must be that the module is loaded into two different bundles... I wonder if you'd need to append stuff to Here for example, I've built an app, where a page, and instrumentation access a file that contains ➜ rg "marker1337" .next -l
.next/server/chunks/273.js
.next/server/chunks/781.js Searching for that marker, gives two chunks. I think there has to be a way to tell webpack to use one bundle only, but I don't remember how. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I want to use redis as a cache to optimize my application. I want to connect redis before start server, and then use it when fetching data on the page. I use register function in instrumentation to created a redis client, but the redis client is empty after imported in getServerSideProps of the page. If I establish a redis connection in getServerSideProps, it is not much different from directly requesting the http api, what should I do?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions