From c2e529119e38879f04c465cf0c2555fe521d4c49 Mon Sep 17 00:00:00 2001 From: Sreesanjay Date: Mon, 11 Mar 2024 01:48:27 +0530 Subject: [PATCH] feat: added engine in package.josn --- server/package.json | 3 +++ server/vercel.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/package.json b/server/package.json index 2a9a3c6..56fa59a 100644 --- a/server/package.json +++ b/server/package.json @@ -3,6 +3,9 @@ "version": "1.0.0", "description": "", "main": "app.js", + "engines": { + "node": "18.x" + }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "nodemon app.js", diff --git a/server/vercel.json b/server/vercel.json index 0ae5106..ef45b38 100644 --- a/server/vercel.json +++ b/server/vercel.json @@ -2,14 +2,14 @@ "version": 2, "builds": [ { - "src": "app.js", - "use": "@now/node" + "src": "./app.js", + "use": "@vercel/node" } ], "routes": [ { "src": "/(.*)", - "dest": "app.js" + "dest": "/" } ] } \ No newline at end of file