Merge pull request #8071 from backstage/feat/change-default-port

Change default port of backend from 7000 to 7007
This commit is contained in:
Fredrik Adelöw
2021-11-22 15:58:48 +01:00
committed by GitHub
77 changed files with 171 additions and 137 deletions
+4 -4
View File
@@ -20,7 +20,7 @@
// catalog API endpoint and execute the script. It will delete and add
// back the locations with the correct type one by one.
const BASE_URL = 'http://localhost:7000/api/catalog'; // Change me
const BASE_URL = 'http://localhost:7007/api/catalog'; // Change me
const deprecatedTypes = [
'github',
@@ -81,9 +81,9 @@ async function request(method, url, body) {
return;
}
try {
const body = Buffer.concat(chunks).toString('utf8').trim();
if (body) {
resolve(JSON.parse(body));
const responseBody = Buffer.concat(chunks).toString('utf8').trim();
if (responseBody) {
resolve(JSON.parse(responseBody));
} else {
resolve();
}