Skip to content

Commit 6d7bdd2

Browse files
committed
chore: Return clientId in health check
1 parent ee9c4ee commit 6d7bdd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/routes/system/health.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { StatusCodes } from "http-status-codes";
44
import { isDatabaseReachable } from "../../../db/client";
55
import { env } from "../../../utils/env";
66
import { isRedisReachable } from "../../../utils/redis/redis";
7+
import { thirdwebClientId } from "../../../utils/sdk";
78
import { createCustomError } from "../../middleware/error";
89

910
type EngineFeature =
@@ -26,6 +27,7 @@ const ReplySchemaOk = Type.Object({
2627
Type.Literal("SMART_BACKEND_WALLETS"),
2728
]),
2829
),
30+
clientId: Type.String(),
2931
});
3032

3133
const ReplySchemaError = Type.Object({
@@ -73,6 +75,7 @@ export async function healthCheck(fastify: FastifyInstance) {
7375
engineVersion: env.ENGINE_VERSION,
7476
engineTier: env.ENGINE_TIER ?? "SELF_HOSTED",
7577
features: getFeatures(),
78+
clientId: `${thirdwebClientId.slice(0, 4)}...${thirdwebClientId.slice(-4)}`,
7679
});
7780
},
7881
});

0 commit comments

Comments
 (0)