Skip to content

chore(ci): resolve Hugo 0.161+ Node sandbox permission errors for CSS build#3206

Open
dishaprakash wants to merge 1 commit intomainfrom
fix-hugo
Open

chore(ci): resolve Hugo 0.161+ Node sandbox permission errors for CSS build#3206
dishaprakash wants to merge 1 commit intomainfrom
fix-hugo

Conversation

@dishaprakash
Copy link
Copy Markdown
Contributor

Fixes the CSS compilation failures caused by the strict Node.js permission sandbox introduced in Hugo 0.161.0.

Changes:

  • Allow necessary child processes
  • Added .browserslistrc and browserslist-stats.json to the .hugo directory. This short-circuits the tool's aggressive directory traversal, preventing ERR_ACCESS_DENIED crashes without needing to allow global read permissions

This change has been confirmed by running the commands on CLI

@dishaprakash dishaprakash requested a review from a team as a code owner May 9, 2026 21:42
Copy link
Copy Markdown
Contributor

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

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 configuration for Cloudflare, including transitioning languageCode to locale, updating Node security permissions to allow specific child processes, and renaming languageName to label. It also adds browserslist configuration files. Feedback was provided to ensure formatting consistency by adding a space before an assignment operator.

[languages]
[languages.en]
languageName ="English"
label ="English"
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.

medium

For consistency with the rest of the configuration file, please add a space before the assignment operator.

Suggested change
label ="English"
label = "English"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants