Skip to content

Conversation

@Maphikza
Copy link
Member

Enhance start.bat with improved Node.js v23 compatibility and build process

Summary

This PR enhances the start.bat script to improve compatibility with Node.js v23 and OpenSSL 3.0, while also improving the build process and error handling.

Problem

The original script had several limitations:

  • No memory allocation settings, which could lead to out-of-memory errors with larger projects
  • No explicit theme building step before starting the app
  • Limited error handling and flow control
  • Basic compatibility with Node.js v23 but missing optimizations

Changes

  • Added memory allocation increase (--max-old-space-size=4096) to prevent memory issues
  • Added a theme building step using lessc before starting the app
  • Changed from using yarn start to yarn run craco start for better compatibility
  • Added error handling with proper exit codes
  • Improved script structure with goto statements for better flow control

…rocess

- Add memory allocation increase (--max-old-space-size=4096)
- Add theme building step using lessc before starting the app
- Change from yarn start to yarn run craco start
- Add error handling with proper exit codes
- Improve script structure with goto statements for better flow control
@f7f376a1fcd0d0e11a10ed1b6577c9 f7f376a1fcd0d0e11a10ed1b6577c9 merged commit 14d4f0b into main May 15, 2025
2 checks passed
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.

3 participants