Skip to content

Common microservice: get runtime environment #706

@filippomc

Description

@filippomc

Currently there is no generic way to setup configurations that are different on the different environments in the frontend, at runtime. One example is the google analytics tag between dev and prod environment.

The common microservice provides that for Sentry and Accounts but there is no generic way to add more.

A new endpoint can be added to the common microservice to get global configurations, say GET api/environment?var=A.

This will return the configuration variable named "A" (note that is better not to expose any environmental variable from the runtime, but only the values that are intended to)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions