From 2783ec0184fdcf2044c0525db659b1777456cd67 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 8 Dec 2020 15:19:21 +0100 Subject: [PATCH] create-app: Add changeset for techdocs-backend changes around GCS publisher --- .changeset/six-mugs-camp.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .changeset/six-mugs-camp.md diff --git a/.changeset/six-mugs-camp.md b/.changeset/six-mugs-camp.md new file mode 100644 index 0000000000..376a406b1d --- /dev/null +++ b/.changeset/six-mugs-camp.md @@ -0,0 +1,20 @@ +--- +'@backstage/create-app': patch +--- + +In the techdocs-backend plugin (`packages/backend/src/plugins/techdocs.ts`), create a publisher using + +``` + const publisher = Publisher.fromConfig(config, logger, discovery); +``` + +instead of + +``` + const publisher = new LocalPublish(logger, discovery); +``` + +An instance of `publisher` can either be a local filesystem publisher or a Google Cloud Storage publisher. + +Read more about the configs here https://backstage.io/docs/features/techdocs/configuration +(You will also have to update `techdocs.storage.type` to `local` or `google_gcs`. And `techdocs.builder` to either `local` or `ci`.)