From 7027fc80299b8c674dcf5b4498e39602c7baebb1 Mon Sep 17 00:00:00 2001 From: devZenta Date: Mon, 29 Dec 2025 02:22:04 +0100 Subject: [PATCH 1/3] chore: update .env.example with MCP_PORT and API_BASE_URL configuration --- .env.example | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 9262afd..c37deca 100644 --- a/.env.example +++ b/.env.example @@ -6,4 +6,8 @@ ENCRYPTION_SALT="MyFixedSalt" # Ports PORT_BUN_SERVER=3000 -PORT_WEB_SERVER=8080 \ No newline at end of file +PORT_WEB_SERVER=8080 +MCP_PORT=3001 + +# API +API_BASE_URL="http://localhost:3000" \ No newline at end of file From d14656bc3eff8b4a22ad7f4b0ea3906135788ce1 Mon Sep 17 00:00:00 2001 From: devZenta Date: Mon, 29 Dec 2025 02:22:18 +0100 Subject: [PATCH 2/3] feat: include .env.example in the Docker image for environment configuration --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 8aa0863..0a6259c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,7 @@ COPY --from=prerelease /usr/src/app/package.json . COPY --from=prerelease /usr/src/app/prisma.config.ts . COPY --from=prerelease /usr/src/app/src ./src COPY --from=prerelease /usr/src/app/prisma ./prisma +COPY --from=prerelease /usr/src/app/.env.example ./.env # run the app USER bun From 490b01d00dca84ca2664608b320547a303635681 Mon Sep 17 00:00:00 2001 From: devZenta Date: Mon, 29 Dec 2025 02:22:33 +0100 Subject: [PATCH 3/3] fix: set default connection string for database configuration --- prisma/db.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prisma/db.ts b/prisma/db.ts index d232d18..1595fd6 100644 --- a/prisma/db.ts +++ b/prisma/db.ts @@ -2,7 +2,8 @@ import { PrismaPg } from "@prisma/adapter-pg"; import { Pool } from "pg"; import { PrismaClient } from "./generated/client"; -const connectionString = process.env.DATABASE_URL; +const connectionString = + process.env.DATABASE_URL || "postgresql://root:root@localhost:5432/myhouse"; // biome-ignore lint/suspicious/noExplicitAny: Dynamic prisma type for test/prod type PrismaType = PrismaClient | any;