Environment specific configuration for Adobe IO runtime project

Avatar

Avatar

Sharma_Shruti

Avatar

Sharma_Shruti

Sharma_Shruti

13-05-2020

Requirement : We need to create and read environment specific configurations on Adobe IO project i.e WCS Commerce API urls and different namespace based on different environment(Dev, Prod) 

We followed steps provided in document 

https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/get...

Steps:

1- Created .env file in workspace.

2- Provided AIO_RUNTIME_APIHOST , AIO_RUNTIME_AUTH and AIO_RUNTIME_NAMESPACE

3- Deployed code base .

Issue 1: Unable to pick credentials provided in .env file.

Issue 2: How to read environment specific variables in node.js code base . 

 

View Entire Topic

Avatar

Avatar

Mihai_Corlan

Employee

Avatar

Mihai_Corlan

Employee

Mihai_Corlan
Employee

18-05-2020

On issue #1 Sarah Xu already answered. On issue #2, can you give us more details about what you are trying to do?