Skip to content

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

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

jamieplu merged 1 commit 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.

@github-actions

github-actions Bot commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-06-02 18:54 UTC

@jamieplu
jamieplu merged commit 831ae7a 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