Skip to content

Instantly share code, notes, and snippets.

@Mix-Liten
Created May 6, 2023 09:17
Show Gist options
  • Save Mix-Liten/7a1ffc9e3b4b2061724c4bc4640c7859 to your computer and use it in GitHub Desktop.
Save Mix-Liten/7a1ffc9e3b4b2061724c4bc4640c7859 to your computer and use it in GitHub Desktop.
when deploy project that include backend server to Vercel, should need this configuration file.
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment