BigRoomStudios / strangeluv

How I Learned to Stop Worrying and Love React
MIT License
35 stars 7 forks source link

Hook for dynamic config #23

Open devinivy opened 8 years ago

devinivy commented 8 years ago

We can use something like trumpet to inject config into the page. This would allow us to avoid compiling the application with the environment baked-in, for greater portability and to mitigate risk of non-matching config when deploying alongside other hapi plugins. For example, if an API and front-end both rely on API_PREFIX then currently the value set at front-end compile-time needs to match the value set for API deploy-time.

jdonisvitch commented 4 years ago

Is this still relevant?

wswoodruff commented 4 years ago

Yeah I think so! This looks like a good idea to me could help avoid config inconsistencies like he mentioned

jdonisvitch commented 4 years ago

Maybe this can be something we take on in the first quarter of upcoming dev time?