Aias00 opened a new issue, #802:
URL: https://github.com/apache/rocketmq-dashboard/issues/802

   ### Problem
   
   The Studio web production env file currently enables mock mode by default:
   
   ```env
   # Backend not ready yet - use mock data
   # Set to "false" when real API is available
   VITE_USE_MOCK=true
   ```
   
   This means production-like builds can ship with `USE_MOCK=true`, so the UI 
may read and mutate in-memory mock data instead of calling the backend.
   
   ### Expected behavior
   
   Production builds should default to real backend APIs. Mock mode should 
remain opt-in for local development or demos, not the production default.
   
   ### Impact
   
   With mock mode enabled in production, users can see simulated resources and 
successful control-plane actions without real backend interaction. This is 
risky for the RocketMQ Studio control-plane UX because it blurs real operations 
and demo data.
   
   ### Suggested fix
   
   - Set `web/.env.production` to `VITE_USE_MOCK=false` by default.
   - Keep local development mock mode configurable through `web/.env` or 
explicit deployment overrides.
   


-- 
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]

Reply via email to