I'm deploying my app to vercel and I'm using node express for the server and next.js for client. When I run them both locally it works but vercel deployment is different. This is my first time deploying a full application, but like only the client can run and the server doesn't. I figured to ask here because I can't find a lot of doc's online that are very helpful/I think it might screw up my already working code if I try anything experimental. I
Here is my vercel.json: {
"version": 2,
"builds": [
{
"src": "webjournal/package.json",
"use": "@vercel/next"
},
{
"src": "server/server.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/api/(.)",
"dest": "/server/server.js"
},
{
"src": "/(.)",
"dest": "/webjournal/$1"
}
]
}
and my server.js: