hugger-lover / next.config.mjs
enzostvs's picture
enzostvs HF staff
init
7f5876d
raw
history blame
405 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config) => {
// Ignore node-specific modules when bundling for the browser
// See https://webpack.js.org/configuration/resolve/#resolvealias
config.resolve.alias = {
...config.resolve.alias,
"sharp$": false,
"onnxruntime-node$": false,
}
return config;
},
};
export default nextConfig;