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

Changes introducing hugo.IsProduction were overwritten #652

Closed
chalin opened this issue Aug 9, 2021 · 3 comments · Fixed by #653
Closed

Changes introducing hugo.IsProduction were overwritten #652

chalin opened this issue Aug 9, 2021 · 3 comments · Fixed by #653

Comments

@chalin
Copy link
Collaborator

chalin commented Aug 9, 2021

Originally posted by @chalin in #611 (comment)


@LisaFC et al.: somehow #540 reverted #413. The latter introduced the use of hugo.IsProduction, in replacement of the environment-variable checking code. IMHO, use of hugo.IsProduction is the better (if not proper) way to determine the build environment, in particular since the build environment can be specified using the -e flag command line flag.

Possibly related: #611
Related: #651

/cc @nate-double-u

@LisaFC
Copy link
Collaborator

LisaFC commented Aug 16, 2021

Ahhh, thanks for spotting this. And yes, agreed that hugo.IsProduction is definitely the way to go.

I'll send a mail to the mailing list when we merge/fix this and update the docs, as this will be a breaking change for some users (ie their site will be indexed by default).

@LisaFC
Copy link
Collaborator

LisaFC commented Aug 16, 2021

(apologies for late reply, I was on vacation)

@chalin
Copy link
Collaborator Author

chalin commented Aug 16, 2021

No worries. I hope that you had a great vacation!

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 a pull request may close this issue.

2 participants