From 7d1194e85fd0f062acdfaeaba54a4f04bf510911 Mon Sep 17 00:00:00 2001 From: coffeeorgreentea <90069434+coffeeorgreentea@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:17:27 -0400 Subject: [PATCH 1/2] chore: Update Dockerfile.server to install nx globally --- scripts/Dockerfile.server | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Dockerfile.server b/scripts/Dockerfile.server index f936a52006..7d37e94783 100644 --- a/scripts/Dockerfile.server +++ b/scripts/Dockerfile.server @@ -15,6 +15,8 @@ RUN git submodule update --init --recursive portal/cloud # RUN poetry install --no-root +RUN npm i -g nx + RUN npm install RUN npm run build-server From 661b124b6c38bdbb0bce11ecbac1c149b0dafe58 Mon Sep 17 00:00:00 2001 From: coffeeorgreentea <90069434+coffeeorgreentea@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:38:05 -0400 Subject: [PATCH 2/2] set node engine version --- package.json | 2 +- vercel-submodule-workaround.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 98d65dfe47..278797250b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "license": "Apache 2.0", "engines": { - "node": "18.x" + "node": "20.x" }, "scripts": { "agent-connector": "nx serve agent-connector", diff --git a/vercel-submodule-workaround.sh b/vercel-submodule-workaround.sh index dfc5969dbf..44a3e4c26d 100755 --- a/vercel-submodule-workaround.sh +++ b/vercel-submodule-workaround.sh @@ -34,5 +34,9 @@ cd .. # go folder up rm -rf tmp/.git # remove .git mv tmp/* $SUBMODULE_PATH/ # move the submodule to the submodule path +# BANDAID: set node version to 18.x +sed -i 's/"node": "[^"]*"/"node": "18.x"/' package.json + + # clean up -rm -rf tmp # remove the tmp folder \ No newline at end of file +rm -rf tmp # remove the tmp folder