Files
backstage/.changeset/brave-impalas-switch.md
T
Praveen Ranjan Keshri d614e1cd9a Updates post review by @Rugvip:
1. Updated reloadIntervalSeconds example to 10 minutes
2. Updated config load error message
3. Fixed vocab error

Signed-off-by: Praveen Ranjan Keshri <prkeshri@gmail.com>
2021-12-10 22:53:31 +05:30

883 B

@backstage/backend-common
@backstage/backend-common
patch

Fixed bug in backend-common to allow passing of remote option in order to enable passing remote url in --config option. The remote option should be passed along with reloadIntervalSeconds from packages/backend/src/index.ts (Updated the file as well)

These changes are needed in packages/backend/src/index.ts if remote URLs are desired to be passed in --config option and read and watch remote files for config.

@@ -86,7 +86,11 @@ async function main() {
   const config = await loadBackendConfig({
     argv: process.argv,
     logger,
+    remote: {
+      reloadIntervalSeconds: 60 * 10 // Check remote config changes every 10 minutes. Change to your desired interval in seconds
+    }
   });
+
   const createEnv = makeCreateEnv(config);

   const healthcheckEnv = useHotMemoize(module, () => createEnv('healthcheck'));