Enable context caching for middleware/edge functions in dev (#47840)
As discussed this enables the context caching for the middleware/edge functions sandbox in development which reduces execution time noticeably as modules don't need to be re-processed for each request unless an HMR event related to that context has occurred. In a follow-up PR we can investigate spreading the middleware/edge function invocations across workers/processes now that we have detached rendering/invoke processes from the routing process. <details> <summary>before</summary>  </details> <details> <summary>after</summary>  </details> x-ref: [slack thread](https://vercel.slack.com/archives/C03KAR5DCKC/p1677431214936269) Fixes: https://github.com/vercel/next.js/issues/43999
Showing
Please
register
or
sign in
to comment