Load Environment Variables in App Automate
How do I load environment variables from a .env file in NodeJS?
You can load custom environment variables into your Node SDK project from an external .env
file. Set the path to your .env
file (you can use both relative and absolute paths) in your browserstack.yml
file. Here is a sample test.env
file in a sample path:
envFile: \sample-path\test.env # load custom environment
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!