akveo / akveo/blur-admin

Conditional environment variables?

Abierto
#146 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
11.3k
Forks
3k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Is there a way to define environment variables that get set based on a build target environment? For example, I have modified Blur Admin to consume data from a REST API. I need to use a different API URL for development, staging, and production.

My hacked-together approach involves defining the URL as a window property and then manually changing the URL based on which environment I'm running/building for.

I'm wondering whether a mechanism already exists in Blur Admin for dealing with this in a better way. If not, I'm wondering what solutions others have come up with and whether it would make sense to incorporate something into the project.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.