jpanther / lynx

A simple links theme for Hugo built with Tailwind CSS.
https://jpanther.github.io/lynx/
MIT License
349 stars 117 forks source link

👷 Specify `HUGO_VERSION` environment variable once in `netlify.toml` #88

Closed hugo-sid closed 10 months ago

hugo-sid commented 11 months ago

What does this PR do?

Fixes redundant environment variable specification across contexts.

Explanation

The environment variable HUGO_VERSION holds the same value for all contexts (production, deploy-preview, and branch-deploy). Specifying it separately for each context becomes redundant.

Specifying it once under [build.environment] should be enough.

Reference

From https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts :

any property of a context-aware key, such as [build] or [[plugins]], will be applied to all contexts unless the same property key is present in a more specific context.

netlify[bot] commented 11 months ago

Deploy Preview for hugo-lynx ready!

Name Link
Latest commit c015a25f3ae2b94abd4a9ef7e694925e3d76acbc
Latest deploy log https://app.netlify.com/sites/hugo-lynx/deploys/64f02d1150372c00082b63f7
Deploy Preview https://deploy-preview-88--hugo-lynx.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

jpanther commented 10 months ago

Thanks, I'm happy to merge this in.