Try to fix issue with WASM init
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Failing after 6m26s
Podman Rootless Demo / deploy-prod (push) Has been skipped

This commit is contained in:
continuist 2025-10-25 23:29:46 -04:00
parent 6b760bf261
commit 33e5d8f5d8
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ RUN echo 'git-fetch-with-cli = true' >> $CARGO_HOME/config.toml
# Copy WASM source and build # Copy WASM source and build
COPY wasm/Cargo.toml wasm/Cargo.lock ./wasm/ COPY wasm/Cargo.toml wasm/Cargo.lock ./wasm/
COPY wasm/src ./wasm/src/ 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 ---------- # ---------- build ----------
FROM docker.io/node:20-slim AS builder FROM docker.io/node:20-slim AS builder

View file

@ -25,7 +25,7 @@ const nextConfig: NextConfig = {
// Enable WASM support // Enable WASM support
config.experiments = { config.experiments = {
...config.experiments, ...config.experiments,
asyncWebAssembly: true, asyncWebAssembly: false,
syncWebAssembly: true, syncWebAssembly: true,
layers: true, layers: true,
}; };
@ -37,7 +37,7 @@ const nextConfig: NextConfig = {
...(config.module?.rules || []), ...(config.module?.rules || []),
{ {
test: /\.wasm$/, test: /\.wasm$/,
type: 'webassembly/async', type: 'webassembly/sync',
}, },
], ],
}; };