Skip to content

Commit

Permalink
fix dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Sep 14, 2022
1 parent 93994fa commit 0ae8ee8
Show file tree
Hide file tree
Showing 2 changed files with 16,855 additions and 7,857 deletions.
10 changes: 7 additions & 3 deletions packages/next/build/webpack-config.ts
Expand Up @@ -806,7 +806,7 @@ export default async function getBaseWebpackConfig(
return prev
}, [] as string[])
: []),
'next/dist/pages/_app.js',
isEdgeServer ? 'next/dist/esm/pages/_app.js' : 'next/dist/pages/_app.js',
]
customAppAliases[`${PAGES_DIR_ALIAS}/_error`] = [
...(pagesDir
Expand All @@ -815,7 +815,9 @@ export default async function getBaseWebpackConfig(
return prev
}, [] as string[])
: []),
'next/dist/pages/_error.js',
isEdgeServer
? 'next/dist/esm/pages/_error.js'
: 'next/dist/pages/_error.js',
]
customDocumentAliases[`${PAGES_DIR_ALIAS}/_document`] = [
...(pagesDir
Expand All @@ -824,7 +826,9 @@ export default async function getBaseWebpackConfig(
return prev
}, [] as string[])
: []),
`next/dist/pages/_document.js`,
isEdgeServer
? `next/dist/esm/pages/_document.js`
: `next/dist/pages/_document.js`,
]
}

Expand Down

0 comments on commit 0ae8ee8

Please sign in to comment.