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"
}
]
}