I have upload my project with node using express + typescript. This app generates a folder dist
for building but when vercel deploy my app it doesn't run the command build so what I had to do for deploy my app is build locally and upload this dist
folder. Here is my vercel.json
{
"version": 2,
"buildCommand": "yarn build",
"devCommand": "yarn dev",
"outputDirectory": "dist",
"builds": [
{
"src": "dist/index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "dist/index.js"
}
]
}