Skip to content

Commit

Permalink
audit fix, build with nuxt 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Dec 23, 2020
1 parent cdaa8ce commit 73750a6
Show file tree
Hide file tree
Showing 6 changed files with 6,154 additions and 3,205 deletions.
2 changes: 1 addition & 1 deletion cache-me.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function cacheAndCopy() {
await fs.copy(CACHE_PATH, BUILD_PATH)
await cacheFinalFiles()
console.log('Please tell me you are well cached.')
}
} else console.error('error')
})
} catch (err) {
// handle error
Expand Down
2 changes: 1 addition & 1 deletion move-cache-back.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function putNuxtClientBack() {
const exists = await fs.pathExists(CACHE_PATH)
if (exists) {
console.log("cache found")
await fs.copy(CACHE_PATH + '/.nuxt', BUILD_PATH)
await fs.copy(CACHE_PATH, BUILD_PATH)
exec('nuxt generate --no-build', (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
Expand Down
4 changes: 1 addition & 3 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const routesList = additionalTotalRoutes
const isDev = process.env.DEPLOY_ENV === 'DEV'

module.exports = {
/*
** Headers of the page
*/
target: 'static',
head: {
title: 'my-project',
htmlAttrs: {
Expand Down
Loading

0 comments on commit 73750a6

Please sign in to comment.