fix: @imgly/background-removal via npm + publicPath CDN + asyncWebAssembly webpack

This commit is contained in:
2026-06-09 12:27:18 +02:00
parent 0b26a61f90
commit a77f44b800
5 changed files with 191 additions and 33 deletions
+5
View File
@@ -1,6 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
webpack: (config) => {
// Requis pour onnxruntime-web (WASM) utilisé par @imgly/background-removal
config.experiments = { ...config.experiments, asyncWebAssembly: true }
return config
},
};
export default nextConfig;