From 33e5d8f5d8dd3ec55f1711acd039db38a6212bee Mon Sep 17 00:00:00 2001 From: continuist Date: Sat, 25 Oct 2025 23:29:46 -0400 Subject: [PATCH] Try to fix issue with WASM init --- frontend/Dockerfile | 2 +- frontend/next.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ba96162..843770d 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -23,7 +23,7 @@ RUN echo 'git-fetch-with-cli = true' >> $CARGO_HOME/config.toml # Copy WASM source and build COPY wasm/Cargo.toml wasm/Cargo.lock ./wasm/ COPY wasm/src ./wasm/src/ -RUN cd wasm && wasm-pack build --target web +RUN cd wasm && wasm-pack build --target web --mode no-install # ---------- build ---------- FROM docker.io/node:20-slim AS builder diff --git a/frontend/next.config.ts b/frontend/next.config.ts index c4e5ef1..00b3e13 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -25,7 +25,7 @@ const nextConfig: NextConfig = { // Enable WASM support config.experiments = { ...config.experiments, - asyncWebAssembly: true, + asyncWebAssembly: false, syncWebAssembly: true, layers: true, }; @@ -37,7 +37,7 @@ const nextConfig: NextConfig = { ...(config.module?.rules || []), { test: /\.wasm$/, - type: 'webassembly/async', + type: 'webassembly/sync', }, ], };