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