Skip to content

Commit

Permalink
fix: clear vite cache after executing entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Oct 24, 2024
1 parent 6487515 commit 0d2e568
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 0d2e568

Please sign in to comment.