Skip to content

Use hugo.isProduction for production environment checks#413

Merged
LisaFC merged 1 commit intogoogle:masterfrom
skmcgrail:fixProductionCheck
Jan 14, 2021
Merged

Use hugo.isProduction for production environment checks#413
LisaFC merged 1 commit intogoogle:masterfrom
skmcgrail:fixProductionCheck

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