Vercel json config for express backend
{
"version": 2,
"builds": [
{
"src": "server.js",
"use": "@vercel/node",
"config": {
"includeFiles": [
"dist/**"
]
}
}
],
"routes": [
{
"src": "/(.*)",
"dest": "server.js"
}
]
}
Vercel json config to support React Router in frontend
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]
}