Skip to content

fix: disable Hugo Node security permissions sandboxing for build compatibility - #138

Merged
jamieplu merged 2 commits into
layer5io:masterfrom
rishiraj38:fix/hugo-postcss-node-permission
Jun 2, 2026
Merged

jamieplu merged 2 commits into
layer5io:masterfrom
rishiraj38:fix/hugo-postcss-node-permission

Conversation

@rishiraj38

@rishiraj38 rishiraj38 commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Disables Node permission restrictions/sandboxing in Hugo (security.node.permissions.disable = true) to prevent build failures on Node 20 and older versions of Node 22 where the --permission flag is unsupported by Node.

This ensures that PostCSS builds successfully and compiles the stylesheet (main.css), avoiding unstyled pages in local and CI development environments.

Signed commits

  • Yes, I signed my commits.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the hugo.yaml configuration file to disable node permissions under the security settings. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@github-actions

github-actions Bot commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for PR #138 removed.

This PR preview was automatically pruned because we keep only the 6 most recently updated previews on GitHub Pages to stay within deployment size limits.

If needed, push a new commit to this PR to generate a fresh preview.

@jamieplu
jamieplu merged commit 0f57277 into layer5io:master Jun 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants