Hugo build error with HUGO_ENV variable results in errors, requires extended version of hugo

Hi @Greenjam94 and @user349340

Have you seen this post which offers a potential solution