Skip to content

Conversation

@NathanFlurry
Copy link
Member

When serverRoutes is specified, only those routes are forwarded to the server. All other routes serve index.html for SPA client-side routing.

When serverRoutes is specified, only those routes are forwarded to the
server. All other routes serve index.html for SPA client-side routing.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/rivet-dev/vite-plugin-srvx@8

commit: 73e6a32

This ensures that URLs matching serverRoutes (e.g., /api/uploads/image.jpg)
are forwarded to the server even if they match exclude patterns like /*.jpg$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants