Hopefully fix some problems

This commit is contained in:
itsfinniii
2026-04-27 15:28:08 +02:00
parent 07716dae17
commit 3cfe6697a9

View File

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