diff --git a/examples/with-backstage/create-gh-app/index.js b/examples/with-backstage/create-gh-app/index.js index 9f264d6..553c073 100644 --- a/examples/with-backstage/create-gh-app/index.js +++ b/examples/with-backstage/create-gh-app/index.js @@ -91,6 +91,8 @@ const writeConfigFile = async (data, webhookUrl) => { }, null, 2) await fs.writeFile(fileName, content); + + console.log(`Created ${fileName}, you can close the server now.`) } const handleCallback = async (req, res) => { @@ -109,8 +111,6 @@ const handleCallback = async (req, res) => { await writeConfigFile(data, webhookUrl); - console.log(`Created ${fileName}, you can close the server now.`) - res.writeHead(302, { Location: `${data.html_url}/installations/new` }); res.end(); }