fix(browser): 400.html ~> 404.html

This commit is contained in:
Pooya Parsa 2020-11-11 01:19:29 +01:00
parent 4f74119739
commit 2e329d0403
1 changed files with 3 additions and 3 deletions

View File

@ -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)}\``)
}