-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Description
- Read the docs.
- Use Vite >=2.0. (1.x is no longer supported)
- If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
spa-fallback is ignore if the path has . (DOT) such as /login.html in router history mode
Reproduction
use npm init @vitejs/app my-vue-app -- --template vue and visit http://localhost:3000/test.html it response 404
System Info
viteversion: v2.0.2- Operating System: MacOS
- Node version: v14.15.0
- Package manager (npm/yarn/pnpm) and version: 6.14.8
Logs (Optional if provided reproduction)
vite:spa-fallback Not rewriting GET /test.html because the path includes a dot (.) character. +390ms
because connect-history-api-fallback will direct . (DOT) file request
https://github.com/bripkens/connect-history-api-fallback#disabledotrule
vite/packages/vite/src/node/server/index.ts
Line 433 in 52f7370
| history({ |
Reactions are currently unavailable