Skip to content

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

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

saurabhraghuvanshii merged 1 commit into
layer5io:masterfrom
rishiraj38:fix/hugo-postcss-node-permission

Conversation

@rishiraj38

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
Contributor

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.

@github-actions

github-actions Bot commented Jun 1, 2026 •

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

@saurabhraghuvanshii
saurabhraghuvanshii merged commit 787ea8b into layer5io:master Jun 2, 2026
3 checks passed
@saurabhraghuvanshii

Copy link
Copy Markdown
Member

Thanks @rishiraj38 lgtm!!

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