Skip to content

Commit 49edba9

Browse files
committed
chore: print node version in healthcheck
1 parent 60c2251 commit 49edba9

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/backend/src/graphql/queries/healthcheck.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { QueryResolvers } from '../__generated__/types.generated'
55
const healthcheck: QueryResolvers['healthcheck'] = () => {
66
return {
77
version: appConfig.version,
8+
nodeVersion: process.version,
89
}
910
}
1011

packages/backend/src/graphql/schema.graphql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,8 @@ input DeleteTableRowsInput {
894894
# End Tiles row types
895895

896896
type AppHealth {
897-
version: String
897+
version: String!
898+
nodeVersion: String!
898899
}
899900

900901
type Stats {

packages/frontend/src/graphql/queries/healthcheck.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const HEALTHCHECK = graphql(`
44
query Healthcheck {
55
healthcheck {
66
version
7+
nodeVersion
78
}
89
}
910
`)

0 commit comments

Comments
 (0)