Skip to content

Modifying config.env in setupNodeEvents #108

Answered by agoldis
redbugz asked this question in Q&A
Discussion options

You must be logged in to vote

cloudPlugin(on, config) indeed expects some env variables from config passed to setupNodeEvents(on, config).

If you're modifying the config, please make sure to preserve the original env values.

As an alternative, please lift cloudPlugin invocation (currently it doesn't return any value)

  setupNodeEvents(on, config) {
     cloudPlugin(on, config)
     /// a bunch of code to do some things based on env vars, including modifying config.env
    }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@redbugz
Comment options

@redbugz
Comment options

Answer selected by redbugz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants