#Get runtime config in static mode

15 messages · Page 1 of 1 (latest)

high kite
#

Is there a way to get runtime env variables in static mode? We are serving our app with nginx and would like to add some runtime environment variables. What would be the best practise? I cannot find any clue with my friend Google :/

Thanks a lot !

#

And I would be glad to create a PR if needed/wished 😄

teal ridge
#

So that means if you want to change, you have to rebuild

#

runtimeConfig needs a server to work "after starting" the app

high kite
#

Would it be possible to fetch the config from a runtime generated config file ?

#

like a config.js or config.json

#

or even from the server env

teal ridge
#

not out of the box, no

#

I mean, you can always to to fetch a config.json file e.g. and use the values from there

#

or add a script that does some things.

#

But that's userlands implementation

high kite
#

Ok thanks, is it something that I could try to implement and PR or is it not wanted?

teal ridge
high kite
#

Thank you very much, can you ping me on it ? @high kite on Github as well