Skip to content

Commit

Permalink
chore: vite server comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Nov 13, 2023
1 parent 86c89cf commit e0c6057
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/histoire/src/node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export async function createServer (ctx: Context, options: CreateServerOptions =
}
}

const { server: nodeServer } = await getViteServer(true) // Should be run after the first one to get a fresh vite.config.js
// Should be run sequentially to get a fresh vite.config.js each time
const { server: nodeServer } = await getViteServer(true) // Run before normal vite to prevent breaking HMR in Nuxt
const { server, viteConfigFile } = await getViteServer(false)
await watchStories(ctx)
const { stop: stopMdFileWatcher } = await createMarkdownFilesWatcher(ctx)
Expand Down

0 comments on commit e0c6057

Please sign in to comment.