Skip to content

Instantly share code, notes, and snippets.

@thecodermehedi
Last active December 9, 2024 02:40
Show Gist options
  • Save thecodermehedi/aea96627ce2bf4499a1d4e3954735cee to your computer and use it in GitHub Desktop.
Save thecodermehedi/aea96627ce2bf4499a1d4e3954735cee to your computer and use it in GitHub Desktop.
vercel configuration file for deploying server ( backend ) to vercel
{
"version": 2,
"builds": [
{
"src": "build/index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "build/index.js",
}
]
}
@thecodermehedi
Copy link
Author

For this file to work you have to have an build folder where you use index.js as a entry point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment