How to add env variable in github project for edge delivery services
Hi,
Facing challenges in adding env variables in edge delivery git project. Can you please suggest a way to add the env variable so that I can use them in blocks folder js?
Hi,
Facing challenges in adding env variables in edge delivery git project. Can you please suggest a way to add the env variable so that I can use them in blocks folder js?
Hi @skchauhan
Navigate to Settings > Secrets > Actions
Add your environment variables (secrets) with their corresponding values
These secrets can be accessed in your GitHub Actions workflows
in your .github/workflows directory, create or modify a workflow YAML file (e.g., main.yml)
use the environment variables (secrets) in your workflow steps.
in your JavaScript files (such as in the blocks folder), you can access the environment variables using process.env.VARIABLE_NAME
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.