fix: align Fastify to 5.7.4 + add web product-config.ts
This commit is contained in:
parent
a606617c1d
commit
f6c85ede9e
@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
21
web/src/lib/product-config.ts
Normal file
21
web/src/lib/product-config.ts
Normal 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"
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user