From 0025e78a0e30b95ac683a86026189efca7ea9112 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Wed, 1 Nov 2023 08:34:54 +0100 Subject: [PATCH] Update Nodecid --- nodecid.config.json | 3 ++- pages/api/github-webhook.ts | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nodecid.config.json b/nodecid.config.json index c954223..6ba359e 100644 --- a/nodecid.config.json +++ b/nodecid.config.json @@ -1,4 +1,5 @@ { "preflight": ["git checkout .", "git pull", "npm install", "npm run build"], - "start": "npm start" + "start": "npm start", + "port": 5000 } diff --git a/pages/api/github-webhook.ts b/pages/api/github-webhook.ts index 16f8803..73b081f 100644 --- a/pages/api/github-webhook.ts +++ b/pages/api/github-webhook.ts @@ -15,11 +15,9 @@ const key = process.env.GITHUB_WEBHOOK_SECRET || ""; * @returns {boolean} */ const verify_signature = (req: NextApiRequest) => { - console.log(req.headers); const signature = createHmac("sha256", key) .update(JSON.stringify(req.body)) .digest("hex"); - console.log(signature); return `sha256=${signature}` === req.headers["x-hub-signature-256"]; };