Reproduction for this issue to learn more.
- run npm install
- run npm run dev
- you can see in the browser that you can switch between the pages index.html and secondary-page.html
- uncomment lines 12-19 in vite.config.ts to enable vite-plugin-html (the injection isnt really used here)
- you should now see in the browser, that you can not visit localhost:3000/secondary-page.html as the server now always serves the index.html