Skip to content

Commit

Permalink
resolving CD issue for GCP.
Browse files Browse the repository at this point in the history
  • Loading branch information
mojitoj committed Jun 29, 2020
1 parent b5e8824 commit afe4bbf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit afe4bbf

Please sign in to comment.