From f6c85ede9e1b0bda8778b49fba2d8a4b372bc062 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 21 Mar 2026 20:31:26 -0700 Subject: [PATCH] fix: align Fastify to 5.7.4 + add web product-config.ts --- backend/package.json | 2 +- web/src/lib/product-config.ts | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 web/src/lib/product-config.ts diff --git a/backend/package.json b/backend/package.json index b6a2058..a463e07 100644 --- a/backend/package.json +++ b/backend/package.json @@ -25,7 +25,7 @@ "@bytelyst/fastify-auth": "file:../../learning_ai_common_plat/packages/fastify-auth", "@bytelyst/fastify-core": "file:../../learning_ai_common_plat/packages/fastify-core", "@azure/cosmos": "^4.2.0", - "fastify": "^5.2.1", + "fastify": "5.7.4", "jose": "^6.0.8", "zod": "^3.24.2" }, diff --git a/web/src/lib/product-config.ts b/web/src/lib/product-config.ts new file mode 100644 index 0000000..3fe8f7c --- /dev/null +++ b/web/src/lib/product-config.ts @@ -0,0 +1,21 @@ +// ── Product Configuration ──────────────────────────────────── +// ChronoMind product identity for platform-service integration. + +export const PRODUCT_ID = "chronomind"; +export const PRODUCT_NAME = "ChronoMind"; + +export function getPlatformBaseURL(): string { + return ( + process.env.PLATFORM_SERVICE_URL || + process.env.NEXT_PUBLIC_PLATFORM_SERVICE_URL || + "http://localhost:4003" + ); +} + +export function getBackendBaseURL(): string { + return ( + process.env.BACKEND_URL || + process.env.NEXT_PUBLIC_BACKEND_URL || + "http://localhost:4011" + ); +}