vercel-builder icon indicating copy to clipboard operation
vercel-builder copied to clipboard

How to configure `vercel -f` to always redeploy without existing build cache ?

Open adrianpdm opened this issue 2 years ago • 0 comments

First of all, thank you for this awesome package. This really simplify my deployment pipeline for Nuxt SSR in Vercel. ⭐ ⭐ ⭐

Issue Description

My current project at Vercel seems to randomly throw error during build. The issue is guaranteed to be gone when i redeploy and uncheck the "Redeploy with existing build cache". Screen Shot 2022-06-09 at 11 52 20

After contacting Vercel support, they suggest that i should use -f flag on vercel command. But i'm not sure where to incorporate that flag using this vercel-builder package.

I've tried setting NUXT_CACHE_DISABLED in project Environment Variables settings. But this doesn't seem to be working. Screen Shot 2022-06-09 at 11 59 54

Question

  1. Is NUXT_CACHE_DISABLED meant to set -f flag? If so, where to put that env value?
  2. If not, is there any way to do this?

adrianpdm avatar Jun 09 '22 05:06 adrianpdm