Is there a way to nest vars with setEnvironment? #2855
Replies: 2 comments 1 reply
-
It's actually not possible to get a nested environment variable with We can also add support for setting the nested environment variable in the same way. However, there's currently no restriction from using a top level environment variable with a |
Beta Was this translation helpful? Give feedback.
-
This should be resolved now in the latest version |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If we want to add a variable an env, we can do this
altair.helpers.setEnvironment('token', token)
and if we want to pull a nested field from the env we can do
altair.helpers.getEnvironment('auth.token');
is there any way to set a nested var similar to the nested get?
altair.helpers.setEnvironment('auth.token', token)
right now I can achieve it doing something like the below, but a supported helper func would be nice
const auth = altair.helpers.getEnvironment('auth') || {} auth.token = token altair.helpers.setEnvironment('auth', auth)
Beta Was this translation helpful? Give feedback.
All reactions