From fd829d751a1143efc5e0d0725777b2294843fc86 Mon Sep 17 00:00:00 2001 From: Sagar Date: Tue, 13 Jun 2023 14:06:27 +0200 Subject: [PATCH] modify start --- apps/server/package.json | 3 ++- package.json | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/server/package.json b/apps/server/package.json index 921e07fc3..8ab98d7e4 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -10,7 +10,8 @@ "dev": "dotenv -e ../../.env next dev", "postinstall": "cd ../../ && npx prisma generate", "lint": "dotenv -e ../../.env next lint", - "start": "dotenv -e ../../.env next start -p $PORT", + "start": "dotenv -e ../../.env next start", + "heroku-start": "next start -p $PORT", "db:migrate": "dotenv -e ../../.env npx prisma migrate dev --name note-entity --create-only && npx prisma generate", "db:push": "dotenv -e ../../.env npx prisma db push", "db:pull": "dotenv -e ../../.env npx prisma db pull", diff --git a/package.json b/package.json index a2100b853..2e914a343 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,16 @@ "repository": "https://github.com/Plant-for-the-Planet-org/FireAlert.git", "author": "Plant-for-the-Planet ", "license": "MIT", + "engines": { + "node": "18.x", + "yarn": "1.22.x" + }, "scripts": { "nativeapp": "yarn workspace @firealert/nativeapp", "server": "yarn workspace @firealert/server", "dev": "yarn server dev", - "start": "yarn server start", - "heroku-postbuild": "yarn server build" + "start": "yarn workspace @firealert/server heroku-start", + "heroku-postbuild": "yarn workspace @firealert/server build" }, "workspaces": [ "apps/*",