Closed tocque closed 2 months ago
Start a new pull request in StackBlitz Codeflow.
I would assume this is how SPA fallback works normally https://vitejs.dev/config/shared-options.html#apptype
For example, you can configure appType: "mpa"
to avoid such fallback https://stackblitz.com/edit/vitejs-vite-gfcunr?file=vite.config.ts
Yep, this is an expected behavior.
Describe the bug
request a not existed file will receive /index.html.
Reproduction
https://stackblitz.com/edit/vitejs-vite-vlvqcb?file=index.html&terminal=dev
Steps to reproduce
just visit https://vitejsvitevlvqcb-s5sf--5173--28a8ce1b.local-corp.webcontainer.io/aaa.js
System Info
Used Package Manager
pnpm
Logs
No response
Validations