Add possibility to prefix EnvVar Names
Open
area-app-model
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
we are using `Vite` to run our react frontends. adding those with AddNpmApp works well, but the problem is, that the environment variables are not available to the frontend.
as per [Vite Documentation](https://vitejs.dev/guide/env-and-mode.html#env-files) environment variables are only available in vite, if the name begins with `VITE_`.
so I suggest to add a `WithEnvironmentPrefix(string prefix)` method to set the prefix for all the exposed environment variables like service URLs, Otlp endpoints etc.
Contributor guide
Assessment
This issue has not been assessed yet.