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
Similar to the issue we ran into here except with using the top level way of defining middleware Next 12.2.0 requires. Middleware functions are executed and run expectedly on prefetches to static routes. But no middleware functions are executed on navigation to dynamic pages, user must refresh the page.
As mentioned it works fine without the 'matcher config', but my concern is that without it the number of edge function invocations will increase tenfold depending on how many static files you access on each page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Similar to the issue we ran into here except with using the top level way of defining middleware Next 12.2.0 requires. Middleware functions are executed and run expectedly on prefetches to static routes. But no middleware functions are executed on navigation to dynamic pages, user must refresh the page.
Steps to reproduce
ab-static-*
once navigating to the subpages (most likely will prefetch)ab-dynamic-*
even when navigating to subpage.Works fine locally on
netlify dev
Can a work around removing the
matcher
config (preview)A link to a reproduction repository
https://github.com/JohnGemstone/netlify-plugin-nextjs-middleware
Plugin version
4.12.2
More information about your build
netlify.toml
)What OS are you using?
Mac OS
Your netlify.toml file
`netlify.toml`
The text was updated successfully, but these errors were encountered: