From 89265a6aad33d6d27a0f2ef5b23fcbd0943aa34e Mon Sep 17 00:00:00 2001 From: tubone Date: Mon, 11 Mar 2024 15:58:58 +0900 Subject: [PATCH] esbuild --- functions/src/cors-proxy-github.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/functions/src/cors-proxy-github.js b/functions/src/cors-proxy-github.js index b2913aeab8..41bd3e9889 100644 --- a/functions/src/cors-proxy-github.js +++ b/functions/src/cors-proxy-github.js @@ -19,15 +19,18 @@ exports.handler = async (event, context) => { const body = JSON.parse(event.body); const headers = { Accept: "application/json", - 'Content-Type': 'application/json', + "Content-Type": "application/json", }; try { - const response = await fetch("https://github.com/login/oauth/access_token", { - method: 'POST', - headers: headers, - body: JSON.stringify(body), - }); + const response = await fetch( + "https://github.com/login/oauth/access_token", + { + method: "POST", + headers: headers, + body: JSON.stringify(body), + } + ); const data = await response.json(); console.log({