Files
backstage/.changeset/brave-impalas-switch.md
T
Praveen Ranjan Keshri 1e7070443d Fixes post review by Rugvip:
1. Ensuring that reloadIntervals, if present, is a valid positive number
2. Remote config error message fix
3. Removed remote config from example backend
4. Lessened the writing.md
5. Multiple changesets

Signed-off-by: Praveen Ranjan Keshri <prkeshri@gmail.com>
2021-12-08 00:21:53 +05:30

886 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 * 60 * 12 // Check remote config changes every 12 hours. Change to your desired interval in seconds
+    }
   });
+
   const createEnv = makeCreateEnv(config);

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