From afe4bbfc76d29cbceb970e59681442c6d6781bac Mon Sep 17 00:00:00 2001 From: Mohammad Jafari Date: Mon, 29 Jun 2020 15:23:22 -0700 Subject: [PATCH] resolving CD issue for GCP. --- app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index cf1b3ea..ea9f8bf 100644 --- a/app.js +++ b/app.js @@ -23,9 +23,12 @@ const proxyOptions = { selfHandleResponse: true }; -logger.info( - `Starting the proxy.` -); +//this is a requirement for gcp +app.get("/_ah/start", (req, res) => { + res.sendStatus(404); +}); + +logger.info(`Starting the proxy.`); app.use("/", createProxyMiddleware(proxyOptions)); module.exports = app;