Skip to content

Instantly share code, notes, and snippets.

@kazi331
Created January 27, 2024 08:59
Show Gist options
  • Save kazi331/a1ba778846d64c03fb2facc1decafcde to your computer and use it in GitHub Desktop.
Save kazi331/a1ba778846d64c03fb2facc1decafcde to your computer and use it in GitHub Desktop.
Add this file into the root of express server to deploy on vercel
{
"version": 2,
"builds": [
{
"src": "app.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "app.js",
"methods": ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment