Json-server + Next.js 14 deploy to Vercel

Hey Guys, Need help with deploying Next.js 14 app with json-server to vercel. I found some article about deploying only json-server and after some try still getting 404. https://trip-chakra.vercel.app/ . Do you know how to configure vercel.json to also build next.js app front end ? Json server - https://github.com/typicode/json-server Any help will be appreciate. vercel.json { "version": 2, "builds": [ { "src": "server.js", "use": "@vercel/node", "config": { "includeFiles": ["db.json"] } } ], "routes": [ { "src": "/(.*)", "dest": "server.js" } ] } https://ivo-culic.medium.com/create-restful-api-with-json-server-and-deploy-it-to-vercel-d56061c1157a
GitHub
GitHub - typicode/json-server: Get a full fake REST API with zero c...
Get a full fake REST API with zero coding in less than 30 seconds (seriously) - typicode/json-server
Medium
Create RESTful API with JSON Server and deploy it to Vercel
Sometimes you need to create or mock up an API that you can play and test while developing your application. The data does not need to be…
1 Reply
KarolMaj
KarolMaj4mo ago
I get ride of json server and implement in api route.