rusackas commented on issue #30183:
URL: https://github.com/apache/superset/issues/30183#issuecomment-3940238496

   I've opened PR #38161 to fix this issue.
   
   **Root cause identified:** This is a race condition where nginx starts 
before the webpack dev server is ready. Nginx proxies `/static` requests to 
port 9000, but `superset-node` needs time to run `npm install` and start the 
dev server first.
   
   **The fix:**
   1. Added a health check to `superset-node` that verifies the webpack dev 
server is responding
   2. Added `depends_on: service_healthy` to nginx so it waits for the frontend 
to be ready
   
   This should resolve the 404 errors that occur during initial startup. The 
"workaround" of running `npm run build` manually worked because it created 
static assets that Flask could serve directly, bypassing the need for the 
webpack dev server - but that's not how the dev setup is supposed to work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to