You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: only set permament caching header when reading html file when its not during server initialization AND when read html is Next produced fully static html
// we need to await getRequestHandlers(...) promise in this callback to ensure that initAsyncLocalStorage
145
+
// is available in async / background work
146
+
returnawaitgetRequestHandlers(...args)
147
+
})
148
+
124
149
// depending on Next.js version requestHandlers might be an array of object
125
150
// see https://github.com/vercel/next.js/commit/08e7410f15706379994b54c3195d674909a8d533#diff-37243d614f1f5d3f7ea50bbf2af263f6b1a9a4f70e84427977781e07b02f57f1R742
0 commit comments