Skip to content

v0.5.0

Choose a tag to compare

@Project516 Project516 released this 06 Sep 18:33
· 2 commits to main since this release
5316843

The central Spectrum App Platform project is now a build-time define instead of a hard-coded constant.

  • centralProjectId reads SPECTRUM_CENTRAL_PROJECT_ID, defaulting to spectrumtasks-81c63.
  • defaultCentralFunctionsBaseUrl reads SPECTRUM_CENTRAL_FUNCTIONS_BASE_URL, defaulting to https://us-central1-$centralProjectId.cloudfunctions.net, so overriding only the project id moves the endpoint with it.

Both defaults are exactly the values 0.4.1 shipped, so a build that passes no defines is unchanged. An overridden base URL still has to be https, since it carries a bearer token.

This exists so another team can run a Spectrum app against their own central platform by setting a build flag, instead of forking this package and re-tagging it on every release.