Skip to content

Preferred way to deal with ENV variables when developing locally? #1947

Answered by mythmon
anandaroop asked this question in Q&A
Discussion options

You must be logged in to vote

Since data loaders and page loaders are programs, you're free to load environment variables however you like. For example, dotenv would work fine.

My personal preference is to use direnv which integrates with your shell to set environment variables when you are in a directory, which apply to any program you run. This is nice because it works with all kinds of tools, not just ones with support for special files.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anandaroop
Comment options

Answer selected by anandaroop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants