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" + ); +}