How to set environment variable to Adobe IO runtime project? | Community
Skip to main content
Level 7
January 23, 2025
Solved

How to set environment variable to Adobe IO runtime project?

  • January 23, 2025
  • 1 reply
  • 700 views

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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
January 23, 2025