Skip to content

Commit

Permalink
Please
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Sep 2, 2023
1 parent 44f7f8f commit d44cf78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ module.exports = {
ENDPOINT: process.env.ENDPOINT,
CLUSTER: process.env.CLUSTER,
},
webpack: (config, { isServer, dev }) => {
config.experiments = { asyncWebAssembly: true, layers: true }
webpack(config, { isServer }) {
if (isServer) {
config.output.webassemblyModuleFilename = './../static/wasm/[modulehash].wasm';
} else {
config.output.webassemblyModuleFilename = 'static/wasm/[modulehash].wasm';
}
config.experiments = { asyncWebAssembly: true, layers : true };
config.optimization.moduleIds = 'named';

return config
},
Expand Down

0 comments on commit d44cf78

Please sign in to comment.