Skip to content

Commit

Permalink
fix(export): removed default export of a 404.html.html page - vercel#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime.dubourg committed May 12, 2022
1 parent 6a00a1b commit 9e3cff4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/next/export/index.ts
Expand Up @@ -418,12 +418,8 @@ export default async function exportApp(
})
)

if (
!options.buildExport &&
!exportPathMap['/404'] &&
!exportPathMap['/404.html']
) {
exportPathMap['/404'] = exportPathMap['/404.html'] = {
if (!options.buildExport && !exportPathMap['/404']) {
exportPathMap['/404'] = {
page: '/_error',
}
}
Expand Down

0 comments on commit 9e3cff4

Please sign in to comment.