create-app: Add new techdocs default configs

This commit is contained in:
Himanshu Mishra
2020-12-05 11:13:27 +01:00
parent a212e43142
commit ff3dd9c02b
3 changed files with 6 additions and 3 deletions
@@ -57,10 +57,13 @@ proxy:
changeOrigin: true
techdocs:
storageUrl: http://localhost:7000/api/techdocs/static/docs
requestUrl: http://localhost:7000/api/techdocs
storageUrl: http://localhost:7000/api/techdocs/static/docs
builder: 'local'
generators:
techdocs: 'docker'
publisher:
type: 'local'
lighthouse:
baseUrl: http://localhost:3003
@@ -108,7 +108,7 @@ export class GoogleGCSPublish implements PublisherBase {
// 'end' event happens when all the files have been read.
const entityRootDir = `${entity.metadata.namespace}/${entity.kind}/${entity.metadata.name}`;
allFilesToUpload.forEach(filePath => {
const source = path.join(directory, filePath); // Local file absolutely path
const source = path.join(directory, filePath); // Local file absolute path
const destination = `${entityRootDir}/${filePath}`; // GCS Bucket file relative path
this.storageClient
.bucket(this.bucketName)
@@ -162,7 +162,7 @@ export async function createRouter({
res
.status(408)
.send(
'Sorry! It is taking longer for the generated docs to show up up in storage. Check back later.',
'Sorry! It is taking longer for the generated docs to show up in storage. Check back later.',
);
return;
}