Skip to content

Commit ac9f4df

Browse files
committed
fix(vite-plugin): return after sending redirect response
1 parent 76714fb commit ac9f4df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite-plugin-tempest/src/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export default function tempest(): Plugin {
193193
if (req.url === '/index.html') {
194194
res.writeHead(302, { Location: appUrl })
195195
res.end()
196+
return
196197
}
197198

198199
next()

0 commit comments

Comments
 (0)