Skip to content

fix(web): add historyApiFallback to fix SPA routing 404 issue#50

Merged
Nimbus318 merged 1 commit into
Project-HAMi:mainfrom
Nimbus318:fix/spa-history-fallback
Nov 6, 2025
Merged

fix(web): add historyApiFallback to fix SPA routing 404 issue#50
Nimbus318 merged 1 commit into
Project-HAMi:mainfrom
Nimbus318:fix/spa-history-fallback

Conversation

@Nimbus318

Copy link
Copy Markdown
Collaborator

Add historyApiFallback configuration to Vue dev server to ensure all non-API route requests fallback to index.html and handled by Vue Router.

Fixed scenarios:

  • Direct access to deep routes (e.g. /admin/vgpu/monitor/overview)
  • Page refresh on any route

Scope: Vue development environment only, production build unaffected

Add historyApiFallback configuration to Vue dev server to ensure
all non-API route requests fallback to index.html and handled by
Vue Router.

Fixed scenarios:
- Direct access to deep routes (e.g. /admin/vgpu/monitor/overview)
- Page refresh on any route

Scope: Vue development environment only, production build unaffected
Signed-off-by: Yu Yin <yu.yin@dynamia.ai>
@hami-robot

hami-robot Bot commented Nov 6, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Nimbus318

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot hami-robot Bot added the size/XS label Nov 6, 2025
@Nimbus318
Nimbus318 merged commit c5230fd into Project-HAMi:main Nov 6, 2025
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant