Create your express server with a simple file that this module will generate for you in a matter of seconds ⏳.
If you want to install it globally 🌐.
npm install -g verxpress
Run the cli with the following command 💻.
verxpress
Or Usage module for npx 🎽.
npx verxpress
In the console it will launch a question to know the name of the main file of the express app 🈸.
By default this is index.js if you give it enter, but it can be the name you want 📛.
This generates a vercel.json file at the root of the project, which will be used by the vercel platform to deploy the app 🚀.
From here, simply enter the vercel platform and upload the project, it will detect the vercel.json and configure that part to support express. Follow the steps and requirements of the platform and voila, you have it 🎉.
Your main file must be in the root of the project because vercel requests it in this section 📚.