Added back type: 'local' to TechDocs config schema

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2024-08-14 11:40:19 -05:00
parent 6e2932615d
commit b77fbf4331
2 changed files with 20 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs-backend': patch
---
Added back `type: 'local'` to TechDocs config schema for `publisher`
+15 -10
View File
@@ -68,14 +68,20 @@ export interface Config {
/**
* Techdocs publisher information
*/
publisher?: {
local?: {
/**
* Directory to store generated static files.
*/
publishDirectory?: string;
};
} & (
publisher?:
| {
type: 'local';
/**
* Optional when 'type' is set to local
*/
local?: {
/**
* (Optional) Directory to store generated static files.
*/
publishDirectory?: string;
};
}
| {
type: 'awsS3';
@@ -258,8 +264,7 @@ export interface Config {
*/
projectId?: string;
};
}
);
};
/**
* @example http://localhost:7007/api/techdocs