We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44953dc commit 35b7361Copy full SHA for 35b7361
src/node/plugin.ts
@@ -170,7 +170,7 @@ export async function createVitePressPlugin(
170
// serve our index.html after vite history fallback
171
return () => {
172
server.middlewares.use((req, res, next) => {
173
- if (req.url!.endsWith('.html')) {
+ if (req.url!.replace(/\?.*$/, '').endsWith('.html')) {
174
res.statusCode = 200
175
res.setHeader('Content-Type', 'text/html')
176
res.end(`
0 commit comments