Skip to content

Commit

Permalink
Update packages/vite/src/node/server/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <chrissi92@hotmail.de>
  • Loading branch information
benmccann and Shinigami92 authored Aug 20, 2021
1 parent 8e43220 commit abcad33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
@@ -503,7 +503,7 @@ export async function createServer(
// run post config hooks
// This is applied before the html middleware so that user middleware can
// serve custom content instead of index.html.
postHooks.forEach((fn) => fn && fn())
postHooks.forEach((fn) => fn?.())

if (!middlewareMode || middlewareMode === 'html') {
// spa fallback

0 comments on commit abcad33

Please sign in to comment.