Skip to content

fix: mock api server enabled in production build masks real error/loading ux #4155

@Nam0101

Description

@Nam0101

Description

vitePluginFakeServer is configured with enableProd: true, so mock endpoints can be active in production. This can cause the UI to always receive successful mocked data, hiding real backend latency/failures and preventing users from seeing real loading, empty, and error states. It also risks shipping stale/fake data paths.

Severity: high
File: amoro-web/vite.config.ts

Expected Behavior

The code should handle this case properly to avoid unexpected errors or degraded quality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions