From d7685d672fd0fa5226459b33b2d651cfce327b1a Mon Sep 17 00:00:00 2001 From: ivgo Date: Tue, 9 Jan 2024 16:37:56 +0100 Subject: [PATCH] Make sure local testing is still possible With the new release, testing locally was broken because the backend couldn't start. This is because we need to add a flag to use the legacy backend. Once the migration to the new backend system is done, this can be removed --- .changeset/nine-buckets-sneeze.md | 6 ++++++ plugins/s3-viewer-backend/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/nine-buckets-sneeze.md diff --git a/.changeset/nine-buckets-sneeze.md b/.changeset/nine-buckets-sneeze.md new file mode 100644 index 0000000..aa82ea5 --- /dev/null +++ b/.changeset/nine-buckets-sneeze.md @@ -0,0 +1,6 @@ +--- +'@spreadshirt/backstage-plugin-s3-viewer-backend': patch +--- + +Add legacy flag for local development. This flag can be removed once the +migration to the new backend-system is done. diff --git a/plugins/s3-viewer-backend/package.json b/plugins/s3-viewer-backend/package.json index 2087028..97650ad 100644 --- a/plugins/s3-viewer-backend/package.json +++ b/plugins/s3-viewer-backend/package.json @@ -21,7 +21,7 @@ "role": "backend-plugin" }, "scripts": { - "start": "backstage-cli package start", + "start": "LEGACY_BACKEND_START=1 backstage-cli package start", "build": "backstage-cli package build", "lint": "backstage-cli package lint", "test": "backstage-cli package test",