From 856a7bc5ef6178afa987224227fde68988221703 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 12 Feb 2024 14:42:51 +0800 Subject: [PATCH] Add health checks to content-fetch --- packages/content-fetch/src/app.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/content-fetch/src/app.ts b/packages/content-fetch/src/app.ts index 3eb12a38f..f3b949dfd 100644 --- a/packages/content-fetch/src/app.ts +++ b/packages/content-fetch/src/app.ts @@ -11,6 +11,8 @@ if (!process.env.VERIFICATION_TOKEN) { throw new Error('VERIFICATION_TOKEN environment variable is not set') } +app.get('/_ah/health', (req, res) => res.sendStatus(200)) + app.all('/', (req, res, next) => { if (req.method !== 'GET' && req.method !== 'POST') { console.error('request method is not GET or POST')