vercel-condition-use

If you want to build with @vercel/next add an environement variable VERCEL_BUILD_NEXT on your vercel project

Usage no npm install needed!

<script type="module">
  import vercelConditionUse from 'https://cdn.skypack.dev/vercel-condition-use';
</script>

README

Build next with custom builder

If you want to build with @vercel/next add an environement variable VERCEL_BUILD_NEXT on your vercel project

if that env is defined vercel use @vercel/next builder instead of @vercel/static-build

you should add a vercel.json file that contain :

{
  "version": 2,
  "builds": [
    {
      "src": "package.json",
      "use": "vercel-condition-use"
    }
  ]
}