diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index a2cbe982a1..16ea049c1f 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -142,7 +142,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp entryFileNames: opts.buildConfig.serverEntry, chunkFileNames: 'chunks/chunk.[hash].mjs', assetFileNames: 'assets/asset.[hash][extname]', - ...viteConfig.build?.rollupOptions?.output + ...viteConfig.build?.rollupOptions?.output, }, }, ssr: true, @@ -223,7 +223,7 @@ async function clientBuild( entryFileNames: 'entry.[hash].js', chunkFileNames: 'chunks/chunk.[hash].js', assetFileNames: 'assets/asset.[hash][extname]', - ...viteConfig.build?.rollupOptions?.output + ...viteConfig.build?.rollupOptions?.output, }, preserveEntrySignatures: 'exports-only', },