There is a new (0.32 at this time) version of Hugo
that has just been released.
It was asked in the community how to handle this situation to test out the new version on a Netlify build.
What is the recommended course of action for Netlify users?
If you do not setup a variable
HUGO_VERSION
onNetlify
it defaults to version0.17
ofHUGO
.Simple Setup:
To target your builds Netlify has a custom variables field in the online console for your site. This will be enough for simple sites that need to target all workflow builds.
Workflow Setup
Netlify
allows for a config file (netlify.toml
) at the root of your build package path that will tell it what configurations to use and will overwrite any build environment variables you setup in the simple example above.netlify.toml
example forHugo
Things to note:
Netlify
allows likeNODE_VERSION
Hugo
templates!Netlify
Here