Skip to content

Commit

Permalink
fix(browser): 400.html ~> 404.html
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 11, 2020
1 parent 5a7e0fa commit 7c68add
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/targets/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ if ('serviceWorker' in navigator) {
},
async done ({ rootDir, publicDir }) {
const fallback200 = resolve(publicDir, '200.html')
const fallback400 = resolve(publicDir, '400.html')
if (!existsSync(fallback400) && existsSync(fallback200)) {
await copy(fallback200, fallback400)
const fallback404 = resolve(publicDir, '404.html')
if (!existsSync(fallback404) && existsSync(fallback200)) {
await copy(fallback200, fallback404)
}
consola.info(`Try with \`nuxt start ${relative(process.cwd(), rootDir)}\``)
}
Expand Down

0 comments on commit 7c68add

Please sign in to comment.