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

hugo.isProduction should be removed #816

Open
tgupta3 opened this issue Oct 17, 2023 · 0 comments
Open

hugo.isProduction should be removed #816

tgupta3 opened this issue Oct 17, 2023 · 0 comments

Comments

@tgupta3
Copy link

tgupta3 commented Oct 17, 2023

"process.env.NODE_ENV" (cond hugo.IsProduction `"production"` `"development"` )

Hugo.isProduction would only return true if environment is production. Unfortunately this breaks when the environment is staging which is production like. This causes the generated js to be huge in size causing the deployment to fail due to Cloudflare page limit.

Perhaps use a different variable like HUGO_THEME_ENV ?

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

No branches or pull requests

1 participant