Recommended Code Modification
This code modification is recommended but not required.
PR #4167 adds a shiny ✨ new Runtime Error Page. New projects ship with the updated code. To use the new Error Page with existing projects, the following code modification is required.
Option 1: Automated Code Mod
To automatically apply the required code mods, run this command:
npx @redwoodjs/codemods@canary update-dev-fatal-error-page
Option 2: Manual Code Mod
Only make these changes if you did not use the automated code mod above.
Update the file web/src/pages/FatalErrorPage/FatalErrorPage.js|tsx
:
- Add a variable and condition for
RedwoodDevFatalErrorPage
use in development:
+ // Ensures that production builds do not include the error page
+ let RedwoodDevFatalErrorPage = undefined
+ if (process.env.NODE_ENV === 'development') {
+ RedwoodDevFatalErrorPage =
+ require('@redwoodjs/web/dist/components/DevFatalErrorPage').DevFatalErrorPage
+ }
- Update
export
with a condition for production and development:
- export default () => (
+ export default RedwoodDevFatalErrorPage ||
+ (() => (
Changelog
Unique contributors: 8
PRs merged: 13
Features
- Provide a Revised Runtime Error Page #4167 by @orta
- CODE MOD: this feature requires a code modification for existing projects
- g secret: raw output #4523 by @Tobbe
- Support for
undefined
as a value for service validators #4534 by @realStandal - Deprecate 'rw open' command #4555 by @thedavidprice
- DEPRECATION: the
redwood open
command has been fully deprecated
- DEPRECATION: the
Fixed
- fix: allow boolean for some validators in validation recipe #4528 by @aguscha333
- create-redwood-app: Correct --overwrite description #4542 by @Tobbe
- fix: link anchor to dataMigrate up docs #4558 by @Jolg42
Chore
- Add generate codemod script #4390 by @jtoar
- E2E Smoke test #4497 by @dac09
- Benchmark
rw test ...
duration for case of Test-project #4504 by @thedavidprice - Try increasing timeout for flaky codemods test #4526 by @jtoar
- Temp fix: move lint & test workflow to use node 16.10 to prevent Windows out of memory #4544 by @dac09
- add dbAuth to Test-project #4563 by @thedavidprice
Package Dependencies
View all Dependency Version Upgrades
- Update dependency stacktracey to v2.1.8 #4519 by @renovate
- Update dependency react-hook-form to v7.27.1 #4521 by @renovate
- Update dependency eslint-config-prettier to v8.4.0 #4522 by @renovate
- Update dependency msw to v0.38.1 #4525 by @renovate
- Update dependency @supabase/supabase-js to v1.30.4 #4536 by @renovate
- Update dependency systeminformation to v5.11.4 #4537 by @renovate
- Update Yarn to v3.2.0 #4543 by @renovate
- Update typescript-eslint monorepo to v5.12.1 #4546 by @renovate
- Update dependency @supabase/supabase-js to v1.30.6 #4549 by @renovate
- Update dependency fs-extra to v10.0.1 #4552 by @renovate
- Update dependency @types/jest to v27.4.1 #4556 by @renovate