fix eperm ci issue on windows (#2757)

This commit is contained in:
Fred K. Schott 2022-03-10 11:40:27 -08:00 committed by GitHub
parent a14075e2a4
commit 602bf2f181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});