rsnext/packages/next/build/webpack/loaders/next-middleware-ssr-loader
Jiachi Liu e029ace5ed
Fix custom 404 page when concurrentFeatures is enabled (#31059)
x-ref: https://github.com/vercel/next.js/issues/30424#issuecomment-955615781

This fix the custom 404 is not rendering properly and can’t be built in web runtime when `concurrentFeatures` is enabled. We force 404 page to be rendered outside of middleware ssr. Then it could be the real fallback 404 page in next-server when any routes is not macthed. 
Will check 500 related after #31057 is landed.

## Bug

- [x] Related to #30989
- [x] Integration tests added
2021-11-06 11:27:40 +00:00
..
index.ts Fix custom 404 page when concurrentFeatures is enabled (#31059) 2021-11-06 11:27:40 +00:00
utils.ts Update loader-utils (#30743) 2021-11-02 16:13:15 +01:00