fix: align Fastify to 5.7.4 + add web product-config.ts

This commit is contained in:
saravanakumardb1 2026-03-21 20:31:26 -07:00
parent a606617c1d
commit f6c85ede9e
2 changed files with 22 additions and 1 deletions

View File

@ -25,7 +25,7 @@
"@bytelyst/fastify-auth": "file:../../learning_ai_common_plat/packages/fastify-auth", "@bytelyst/fastify-auth": "file:../../learning_ai_common_plat/packages/fastify-auth",
"@bytelyst/fastify-core": "file:../../learning_ai_common_plat/packages/fastify-core", "@bytelyst/fastify-core": "file:../../learning_ai_common_plat/packages/fastify-core",
"@azure/cosmos": "^4.2.0", "@azure/cosmos": "^4.2.0",
"fastify": "^5.2.1", "fastify": "5.7.4",
"jose": "^6.0.8", "jose": "^6.0.8",
"zod": "^3.24.2" "zod": "^3.24.2"
}, },

View File

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