Skip to content

Commit

Permalink
add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ktym4a committed Feb 2, 2024
1 parent 5096140 commit 940f2c6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function vitePluginAstroPreview(settings: AstroSettings): Plugin {
}
}

// TODO: look into why the replacement needs to happen here
for (const middleware of server.middlewares.stack) {
// This hardcoded name will not break between Vite versions
if ((middleware.handle as Connect.HandleFunction).name === 'vite404Middleware') {
Expand Down

0 comments on commit 940f2c6

Please sign in to comment.