Last active
December 9, 2024 02:40
-
-
Save thecodermehedi/aea96627ce2bf4499a1d4e3954735cee to your computer and use it in GitHub Desktop.
vercel configuration file for deploying server ( backend ) to vercel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"builds": [ | |
{ | |
"src": "build/index.js", | |
"use": "@vercel/node" | |
} | |
], | |
"routes": [ | |
{ | |
"src": "/(.*)", | |
"dest": "build/index.js", | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For this file to work you have to have an build folder where you use index.js as a entry point