Skip to content

Commit

Permalink
fix: clear vite cache after executing entrypoint
Browse files Browse the repository at this point in the history
Close #42
  • Loading branch information
Julien-R44 committed Oct 24, 2024
1 parent 5309410 commit 710523a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class ServerRenderer {
*/
if (devServer) {
ServerRenderer.runtime ??= await this.vite!.createRuntime()
ServerRenderer.runtime.clearCache()
render = await ServerRenderer.runtime.executeEntrypoint(this.config.ssr.entrypoint!)
} else {
/**
Expand Down

0 comments on commit 710523a

Please sign in to comment.