akveo / akveo/blur-admin

Conditional environment variables?

未關閉
#146 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
11.3k
分支
3k
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。