diff --git a/astro/astro.config.mjs b/astro/astro.config.mjs index 1b57520..c02b900 100644 --- a/astro/astro.config.mjs +++ b/astro/astro.config.mjs @@ -7,6 +7,7 @@ import graphql from '@rollup/plugin-graphql'; // https://astro.build/config export default defineConfig({ integrations: [preact()], + output: 'static', prefetch: true, image: { domains: ['development.directus.itsfinniii.com'] @@ -18,6 +19,16 @@ export default defineConfig({ react: "preact/compat", "react-dom": "preact/compat", }, + }, + build: { + rollupOptions: { + // This prevents the WASM warning from breaking builds or spamming logs + external: [/justified-layout-wasm/], + }, + sourcemap: true + }, + optimizeDeps: { + exclude: ['@immich/justified-layout-wasm'] } } }); \ No newline at end of file