From 3cfe6697a98aee4deda9f56daef2e71a0295b094 Mon Sep 17 00:00:00 2001 From: itsfinniii <102350242+itsfinniii@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:28:08 +0200 Subject: [PATCH] Hopefully fix some problems --- astro/astro.config.mjs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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