From 0d2e568c3a84692c640da07fccb1c1a114422a7d Mon Sep 17 00:00:00 2001 From: Julien Date: Thu, 24 Oct 2024 03:49:09 +0200 Subject: [PATCH] fix: clear vite cache after executing entrypoint --- src/server_renderer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server_renderer.ts b/src/server_renderer.ts index a03258e..b95ab80 100644 --- a/src/server_renderer.ts +++ b/src/server_renderer.ts @@ -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 { /**