I have a project that I wrote in next js and used json-server for the fake backend. The problem is that I can’t deploy the project to vercel because json-server doesn’t start when building the project
I tried running multiple scripts at once using concurrently in verel, but that didn’t work. Here is the command:
"scripts": {
"build": "next build",
"start": "next start",
"json-server": "json-server --watch db.json --port 5000",
"deploy": "concurrently "npm run json-server" "npm run build && npm run start"",
},