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

Show how-to use the build-in hugo -e flag #621

Closed
wants to merge 1 commit into from

Conversation

melroy89
Copy link
Contributor

@melroy89 melroy89 commented Feb 5, 2023

You don't need to set HUGO_ENV, you can use the built-in -e or --environment flag on the hugo command.

You don't need to set `HUGO_ENV`, you can use the built-in `-e` or `--environment` flag on the `hugo` command.
@netlify
Copy link

netlify bot commented Feb 5, 2023

Deploy Preview for gohugo-ananke-theme-demo canceled.

Name Link
🔨 Latest commit dc19234
🔍 Latest deploy log https://app.netlify.com/sites/gohugo-ananke-theme-demo/deploys/63dfc207f60f670008c6c620

@melroy89 melroy89 changed the title Show how-to yse the build-in hugo -e flag Show how-to use the build-in hugo -e flag Feb 8, 2023
@melroy89
Copy link
Contributor Author

First bug needs to be resolved: #625

@regisphilibert
Copy link
Member

You do have to use HUGO_ENV for this theme to build the "production" build. See #574 (comment) for the motivation behind this.

It's documented.

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