Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery
SOLVED

How to set environment variable to Adobe IO runtime project?

Avatar

Level 9

Hello Team,

 

How to set environment variable to Adobe IO runtime project while deploying?

Example: I want to keep the sensiteve information in Adobe IO run time environment section.
SMTP_HOST, SMTP_USER, SMTP_PASS, NODE_ENV

For testing purpose in local, I have kept the .env file in the project forlder. Then, my project is taking these values.

But, for the code repository, I cannot commit this .env file.  When I refer Diconium project, I got these details, which is present in package.json file

"deploy:dev": "cross-env NODE_ENV=development serverless deploy",
"deploy:prod": "cross-env NODE_ENV=production serverless deploy",
"deploy:stage": "cross-env NODE_ENV=stage serverless deploy",

 

Similarly, how can i set multiple variables in environment section?

 

cc @arunpatidar   @Shashi_Mulugu @AMANATH_ULLAH  @sarav_prakash @AmitVishwakarma 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor