File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/codemods/src/codemods/v6.x.x/updateDevFatalErrorPage Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Here's a diff of what this codemod will do
1313- let RedwoodDevFatalErrorPage = undefined
1414- if (process.env.NODE_ENV === 'development') {
1515- RedwoodDevFatalErrorPage =
16- - require('@redwoodjs /web/dist/components/DevFatalErrorPage').DevFatalErrorPage
16+ - require('@cedarjs /web/dist/components/DevFatalErrorPage').DevFatalErrorPage
1717- }
1818+ // This import will be automatically removed when building for production
1919+ import { DevFatalErrorPage } from '@cedarjs/web/dist/components/DevFatalErrorPage'
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const updateDevFatalErrorPage = async () => {
1515 const webFatalErrorPagesDir = path . join ( rwPaths . web . pages , 'FatalErrorPage' )
1616 const filename = path . join ( webFatalErrorPagesDir , 'FatalErrorPage' )
1717 const url =
18- 'https://raw.githubusercontent.com/cedarjs/cedar/0acd00946f9ad235320ea9b0b9a380d366e8936f /packages/create-cedar-app/templates/ts/web/src/pages/FatalErrorPage/FatalErrorPage.tsx'
18+ 'https://raw.githubusercontent.com/cedarjs/cedar/aa89556781dddc4730d3c8605040dc63a1ba6c1a /packages/create-cedar-app/templates/ts/web/src/pages/FatalErrorPage/FatalErrorPage.tsx'
1919
2020 const isTsxPage = fs . existsSync (
2121 path . join ( webFatalErrorPagesDir , 'FatalErrorPage.tsx' ) ,
You can’t perform that action at this time.
0 commit comments