0

when i run the app locally, obviously the variables from app.yml are not injected into process.env , whats the correct way to get around this ?

runtime: nodejs env: flex service: email

 env_variables:
   PUBSUB_TOPIC: dev-xxx

   PUBSUB_VERIFICATION_TOKEN: <your-verification-token>
Dan Cornilescu
  • 39,470
  • 12
  • 57
  • 97
1977
  • 2,580
  • 6
  • 26
  • 37
  • Possible duplicate of [Google App Engine Flexible - environment variables](http://stackoverflow.com/questions/42447698/google-app-engine-flexible-environment-variables) – Avinash Raj Apr 05 '17 at 05:55

1 Answers1

0

The best way to do this is to not use app.yaml for environment variables. Instead, I suggest using nconf and a json file like we do in the samples.

Justin Beckwith
  • 7,686
  • 1
  • 33
  • 55