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

Use hugo.isProduction for production environment checks #413

Merged
merged 1 commit into from
Jan 14, 2021
Merged

Use hugo.isProduction for production environment checks #413

merged 1 commit into from
Jan 14, 2021

Conversation

skmcgrail
Copy link
Contributor

This pull request updates the production environment checks to use the hugo.isProduction function. This ensures that the production environment can be specified by either hugo --environment production or HUGO_ENV=production.

@LisaFC
Copy link
Collaborator

LisaFC commented Jan 14, 2021

Oh excellent, I don't think that function existed when those checks were created!

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