feature/1-self-sovereign-passports-for-user-identity #2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue