From 602bf2f181e5ae59f95f94a43dd21fdf092d8a3c Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Thu, 10 Mar 2022 11:40:27 -0800 Subject: [PATCH] fix eperm ci issue on windows (#2757) --- packages/astro/src/core/preview/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/astro/src/core/preview/index.ts b/packages/astro/src/core/preview/index.ts index 86ed88af3..b686cf3f9 100644 --- a/packages/astro/src/core/preview/index.ts +++ b/packages/astro/src/core/preview/index.ts @@ -33,6 +33,7 @@ export default async function preview(config: AstroConfig, { logging }: PreviewO /** Base request URL. */ let baseURL = new URL(config.buildOptions.site || '/', defaultOrigin); const staticFileServer = sirv(fileURLToPath(config.dist), { + dev: true, etag: true, maxAge: 0, });