Skip to content

fix: Client-side routing breaks on page refresh for non-root paths. in s3-proxy-server #20

@akram6t

Description

@akram6t

Current Behavior

  • Direct navigation to routes (e.g., /projects, /about) works when clicking links.
  • Refreshing the page on any non-root path (e.g., /projects, /about) returns an S3 NoSuchKey error.
  • Static assets load correctly.
  • Root path (/) works as expected.

Expected Behavior

  • All client-side routes should work on direct access and page refresh.
  • S3 should serve index.html for all non-static routes.
  • SPA routing capabilities should be maintained.

Build Project details

  • Framework: React/Vite SPA
  • Current implementation fails to handle client-side routing properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions