diff --git a/libs/qwikdev-astro/src/index.ts b/libs/qwikdev-astro/src/index.ts index 342f9ee3..07eee1e6 100644 --- a/libs/qwikdev-astro/src/index.ts +++ b/libs/qwikdev-astro/src/index.ts @@ -83,14 +83,15 @@ export default defineIntegration({ entrypoints = getQwikEntrypoints(srcDir, filter); if ((await entrypoints).length !== 0) { + // Update the global dist directory + distDir = astroConfig.outDir.pathname; + await fsExtra.ensureDir(distDir); + addRenderer({ name: "@qwikdev/astro", serverEntrypoint: resolve("../server.ts") }); - // Update the global dist directory - distDir = astroConfig.outDir.pathname; - // checks all windows platforms and removes drive ex: C:\\ if (os.platform() === "win32") { distDir = distDir.substring(3);