From de89ac710e488ed922f16c8e1a17366755bf1fb8 Mon Sep 17 00:00:00 2001 From: Chibueze Ogbuji <143149235+devtony01@users.noreply.github.com> Date: Wed, 23 Jul 2025 12:15:40 +0100 Subject: [PATCH 1/2] fix: Update setup.sh, wait for database to start --- template/bin/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/template/bin/setup.sh b/template/bin/setup.sh index 853a96b7f..7772349c4 100755 --- a/template/bin/setup.sh +++ b/template/bin/setup.sh @@ -3,6 +3,12 @@ set -e source ./constants.sh +# Wait for MongoDB to be ready +until mongosh --host "$HOST" --port "$PORT" --eval "print('waiting...')" 2>/dev/null; do + echo "Waiting for MongoDB to be ready..." + sleep 2 +done + handle_replication() { local authArgs="" if [[ $USERNAME ]]; then From 226446d925aef5d708c091e0634c1213ff2070fd Mon Sep 17 00:00:00 2001 From: Chibueze Ogbuji <143149235+devtony01@users.noreply.github.com> Date: Thu, 23 Apr 2026 11:37:43 +0100 Subject: [PATCH 2/2] fix: api: update tsconfig Introduce new catch-all that replaces the deprecated baseUrl --- template/apps/api/tsconfig.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/template/apps/api/tsconfig.json b/template/apps/api/tsconfig.json index 4e3bf928a..edef5f41f 100644 --- a/template/apps/api/tsconfig.json +++ b/template/apps/api/tsconfig.json @@ -2,10 +2,11 @@ "extends": "tsconfig/nodejs.json", "compilerOptions": { "jsx": "react", // for using Mailer - "baseUrl": "src", "rootDir": ".", "outDir": "dist", - + "paths": { + "*": ["./src/*"], + }, "allowSyntheticDefaultImports": true, "esModuleInterop": true },