Skip to content

Commit d8f1ed9

Browse files
authored
chore: Add clientId to health check (#785)
* chore: Return clientId in health check * bump axios * full client ID
1 parent b0fd43e commit d8f1ed9

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"schema": "./src/prisma/schema.prisma"
102102
},
103103
"resolutions": {
104-
"@thirdweb-dev/auth/**/axios": ">=1.7.4",
104+
"@thirdweb-dev/auth/**/axios": ">=1.7.8",
105105
"@thirdweb-dev/auth/**/web3-utils": ">=4.2.1",
106106
"ethers-gcp-kms-signer/**/protobufjs": ">=7.2.5",
107107
"fastify/**/find-my-way": ">=8.2.2",

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,
7679
});
7780
},
7881
});

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6086,10 +6086,10 @@ aws4fetch@1.0.18:
60866086
resolved "https://registry.yarnpkg.com/aws4fetch/-/aws4fetch-1.0.18.tgz#417079ed66383cdd5875e04e9a1ff460917f3896"
60876087
integrity sha512-3Cf+YaUl07p24MoQ46rFwulAmiyCwH2+1zw1ZyPAX5OtJ34Hh185DwB8y/qRLb6cYYYtSFJ9pthyLc0MD4e8sQ==
60886088

6089-
axios@>=1.7.4, axios@^0.21.0, axios@^0.27.2:
6090-
version "1.7.7"
6091-
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.7.tgz#2f554296f9892a72ac8d8e4c5b79c14a91d0a47f"
6092-
integrity sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==
6089+
axios@>=1.7.8, axios@^0.21.0, axios@^0.27.2:
6090+
version "1.7.8"
6091+
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.8.tgz#1997b1496b394c21953e68c14aaa51b7b5de3d6e"
6092+
integrity sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==
60936093
dependencies:
60946094
follow-redirects "^1.15.6"
60956095
form-data "^4.0.0"

0 commit comments

Comments
 (0)