diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 228a053..c3af666 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -8,6 +8,8 @@ import { IncomingHttpHeaders } from "http"; import path from "path"; import { CorruptorConfigMap } from "../manifests/utils/configs"; +const { version } = require("../../package.json"); + export const handleOptionsRequest = async (event: ALBEvent): Promise => { return { statusCode: 204, @@ -43,7 +45,7 @@ export const generateHeartbeatResponse = (): Promise => { "Access-Control-Allow-Headers": "Content-Type, Origin", }, }; - response.body = JSON.stringify({ message: "OK! 💚" }); + response.body = JSON.stringify({ message: "OK! 💚", version }); return Promise.resolve(response); };