rsnext/packages/next/build/webpack/loaders/next-middleware-ssr-loader
Shu Ding 7b524c1b97
Properly support custom 500 page in the web server (#33729)
In the web runtime, currently we use `absolute500Path || absoluteErrorPath` to act like `/_error`. This PR fixes the behavior to use the `/pages/500.js` for 500 errors and `/pages/_error.js` for 500 fallback and other errors.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-01-27 16:20:16 +00:00
..
index.ts Properly support custom 500 page in the web server (#33729) 2022-01-27 16:20:16 +00:00
render.ts Implement web server as the request handler for edge SSR (#33635) 2022-01-26 06:22:11 +00:00
utils.ts Update loader-utils (#30743) 2021-11-02 16:13:15 +01:00