[build]
  command = "npm run build"
  publish = "dist"

# Change the version of Hugo you want to use on Netlify
# by changing this environment variable.
[build.environment]
  HUGO_VERSION = "0.21"

[context.deploy-preview]
  command = "npm run build-preview"

[build]
  command = "npm run build"
  publish = "dist"

# Change the version of Hugo you want to use on Netlify
# by changing this environment variable.
[build.environment]
  HUGO_VERSION = "v0.25.1"

[context.deploy-preview]
  command = "npm run build-preview"

Update to 0.25.1 before merging.
Update to 0.25.1 before merging.

This will set it to the most recent release to date.