Description: I’m experiencing an issue with Strapi when attempting to build the admin panel. The build process often gets stuck without completing, displaying repeated log entries related to network reads. This occurs when running the build command in a production environment.
Steps to Reproduce:
Set up the environment variables:
APP_KEYS=“toBeModified1,toBeModified2”
JWT_SECRET=2oKb9UloTnOnn+d+yrjuJw==
ADMIN_JWT_SECRET=c787c6e1ce3b971f391c08f299dfce9ade03f58b371148dd6c4f7bf8d19b50be488344a1b119df37a915b89e2044252ca000cba327e5b1f44665113c9fb30b66
NODE_ENV=production
Run the following command:
bash
Copy code
npx strapi build
Observe that the build process does not complete and remains stuck with repeated log entries like:
yaml
Copy code
Building admin panelNET 45857: _read - n 16384 isConnecting? false hasHandle? true
Expected Behavior: The admin panel should build successfully and complete the process within a reasonable time without getting stuck.
Actual Behavior: The build process does not finish and repeatedly logs network read events. The process never terminates, making it impossible to deploy or use the admin panel in production.
System Information:
Strapi Version: 4.25.5
Node.js Version: 20.17.0
NPM Version: 10.8.2
Operating System: macOS Monterey 12.6.7
Additional Context:
I have tried clearing the cache (npx strapi cache:clear), but it does not resolve the issue.
The issue persists across multiple attempts and is blocking our deployment.
There is no specific error message indicating the root cause, making troubleshooting difficult.
Request: Please investigate the issue or provide guidance on any additional debugging steps. If there’s any known workaround to bypass this build issue, it would be greatly appreciated.