Skip to content

Latest commit

 

History

History

nullstack-adapt-vercel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

nullstack-adapter-vercel

Generate build files compatible with Vercel using Build Output API

How to use

This script should run after the Nullstack produces it's normal builds, for example:

"scripts": {
  "build": "nullstack build",
  "vercel-build": "npm run build && npx nullstack-adapt-vercel"
}

Then it will generate the .vercel/output folder using .production and public accordingly to Vercel Build Output API allowing to deploy seamlessly (e.g. running vercel from Vercel CLI)

💡 vercel-build is the default script that Vercel itself runs when deploying, perfect to execute a script like this only there 🚀