Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dotenv by loading process.env later #59

Merged
merged 1 commit into from
Jun 25, 2018
Merged

Support dotenv by loading process.env later #59

merged 1 commit into from
Jun 25, 2018

Conversation

paulmelnikow
Copy link
Contributor

dotenv is a popular library for loading runtime config from a .env file. It's useful for lightweight development. The way it works is a little dirty because it modifies process.env. It's a tricky to use with Airtable, which grabs its config at module load time.

If loading the environment is deferred until Airtable is used, it works like a charm.

dotenv is a popular library for loading runtime config from a .env file.
It's useful for lightweight development. The way it works is a little
dirty because it modifies process.env. It's a tricky to use with
Airtable, which grabs its config at module load time.

If loading the environment is deferred until Airtable is used, it works
like a charm.

https://github.com/motdotla/dotenv
@kasrak
Copy link
Contributor

kasrak commented Jun 25, 2018

Thanks!

@kasrak kasrak merged commit 20ee90c into Airtable:master Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants