You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So via #611 I have discovered that checking if HUGO_ENV is set to "production" is not the same as checking isProduction, because Hugo is determined to confuse me. :)
At the moment because we check the former but not the latter, by default our sites are not indexed - you need to set an environment variable in eg your Netlify deployment settings. If we switched to checking isProduction, sites are publicly indexed by default. This would be a (fairly trivial) breaking change.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So via #611 I have discovered that checking if HUGO_ENV is set to "production" is not the same as checking
isProduction
, because Hugo is determined to confuse me. :)At the moment because we check the former but not the latter, by default our sites are not indexed - you need to set an environment variable in eg your Netlify deployment settings. If we switched to checking
isProduction
, sites are publicly indexed by default. This would be a (fairly trivial) breaking change.Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions