diff --git a/backend/package.json b/backend/package.json index 3e75c72..db9a5a1 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,8 +1,11 @@ { "name": "server", "scripts": { - "start": "node ./index.js", - "dev": "nodemon ./index.js" + "start": "node index.js", + "dev": "nodemon index.js" + }, + "engines": { + "node": "14.x" }, "dependencies": { "cors": "^2.8.5", diff --git a/backend/vercel.json b/backend/vercel.json new file mode 100644 index 0000000..bcc7720 --- /dev/null +++ b/backend/vercel.json @@ -0,0 +1,9 @@ +{ + "version": 2, + "builds": [ + { + "src": "./index.js", + "use": "@vercel/node" + } + ] +} \ No newline at end of file