mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Merge pull request #10688 from AllForNothing/relative
UI should use relative path for back-end APIs
This commit is contained in:
commit
647f11f26b
@ -17,4 +17,8 @@ if (!fs.existsSync(outputDir)) {
|
||||
fs.mkdirSync(outputDir);
|
||||
}
|
||||
const swaggerObj = yaml.load(fs.readFileSync(inputFile, {encoding: 'utf-8'}));
|
||||
// host is not needed as UI uses relative path for back-end APIs
|
||||
if (swaggerObj.host) {
|
||||
delete swaggerObj.host;
|
||||
}
|
||||
fs.writeFileSync(outputDir + '/swagger.json', JSON.stringify(swaggerObj, null, 2));
|
||||
|
Loading…
Reference in New Issue
Block a user