Skip to content

Commit

Permalink
[build cache] Fix a bug when the persistent-Next-cache-on-Vercel is n…
Browse files Browse the repository at this point in the history
…ot initialised yet

...by creating the `.next/cache/` at the start of the prod build folder if it doesn't exist yet
  • Loading branch information
Olivier Philippon committed May 10, 2022
1 parent 239d86b commit b534ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev",
"build": "next build",
"build:prod": "npm run build:textualize-cache:display && npm run scripts:transpile && npm run scripts:generate-data-code-for-galleries && next build && npm run build:textualize-cache:display",
"build:textualize-cache:display": "cat .next/cache/textualize-cache.*.json || true",
"build:textualize-cache:display": "mkdir -p .next/cache/ && cat .next/cache/textualize-cache.*.json || true",
"build:textualize-cache:clear": "rm -f .next/cache/textualize-cache.*.json || true",
"start": "next start",
"prepare": "husky install",
Expand Down

0 comments on commit b534ea7

Please sign in to comment.