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

Set up environment variables #937

Open
ericwbailey opened this issue Jul 12, 2020 · 5 comments · May be fixed by #1178
Open

Set up environment variables #937

ericwbailey opened this issue Jul 12, 2020 · 5 comments · May be fixed by #1178
Assignees
Labels
claimed Work is being done on an issue. eleventy Issues dealing with 11ty, our CMS. help wanted Issues the team would like assistince with. redesign

Comments

@ericwbailey
Copy link
Member

Adding environment variables will allow us to differentiate between local development and the live, published site. This is great for things like ensuring our analytics are accurate, as well as better CI/CD integration (not to mention clever things like creating favicons to indicate if the site is live or not when working on it).

Here's a good starting point on setting this up in Eleventy: https://weblog.herok.pl/posts/eleventy-tip-use-environment-variables/

@ericwbailey ericwbailey added help wanted Issues the team would like assistince with. redesign eleventy Issues dealing with 11ty, our CMS. labels Jul 12, 2020
@danielmatthew
Copy link
Contributor

@ericwbailey May I get involved with this one?

@ericwbailey
Copy link
Member Author

That'd be amazing!

@ericwbailey ericwbailey added the claimed Work is being done on an issue. label Sep 10, 2020
@ericwbailey
Copy link
Member Author

To reference later: https://css-tricks.com/give-your-eleventy-site-superpowers-with-environment-variables/

@danielmatthew Is this something you're still interested in? No worries if not.

@danielmatthew
Copy link
Contributor

@ericwbailey I am! I'm sorry – extracurricular activities fell by the wayside towards the end of last year.

@ericwbailey
Copy link
Member Author

@danielmatthew No worries, especially considering this year. Just checking in!

@danielmatthew danielmatthew linked a pull request Jan 17, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimed Work is being done on an issue. eleventy Issues dealing with 11ty, our CMS. help wanted Issues the team would like assistince with. redesign
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants