Skip to content

Commit 4e931c4

Browse files
committed
fix(codemods): CedarJS
1 parent aa89556 commit 4e931c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/codemods/src/codemods/v6.x.x/updateDevFatalErrorPage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'

packages/codemods/src/codemods/v6.x.x/updateDevFatalErrorPage/updateDevFatalErrorPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'),

0 commit comments

Comments
 (0)