Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

  • Understand the current workflow structure and identify the build step
  • Add NODE_OPTIONS environment variable to the "Build Docusaurus site" step
  • Verify the change is correctly formatted
  • Request code review
  • Run security checks
  • Fix pre-commit issues (trailing whitespace and missing EOF newlines in versioned docs)
Original prompt

The current build job in the workflow 'Build and Deploy Docusaurus Documentation' (.github/workflows/build-and-deploy.yml) is failing with a 'JavaScript heap out of memory' error. Fix this by increasing the Node.js memory allocation for the build step. Add the environment variable NODE_OPTIONS with the value "--max-old-space-size=4096" to the npm run build step.

Example solution:

- name: Build Docusaurus site
  run: npm run build
  env:
    NODE_OPTIONS: "--max-old-space-size=4096"

Update the workflow file .github/workflows/build-and-deploy.yml and create a pull request proposing this change.

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com>
@franciscojavierarceo franciscojavierarceo marked this pull request as ready for review January 16, 2026 20:23
@franciscojavierarceo franciscojavierarceo changed the title [WIP] Fix build job failing due to JavaScript heap out of memory error Fix build job failing due to JavaScript heap out of memory error Jan 16, 2026
Copilot AI changed the title Fix build job failing due to JavaScript heap out of memory error Fix Node.js heap out of memory error in Docusaurus build Jan 16, 2026
@franciscojavierarceo
Copy link
Collaborator

@copilot fix the precommit please

Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 16, 2026

@copilot fix the precommit please

Fixed in commit e6f48cc. The pre-commit hooks found trailing whitespace and missing end-of-file newlines in versioned documentation files, which have now been corrected.

@franciscojavierarceo franciscojavierarceo merged commit ce3a571 into main Jan 16, 2026
2 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