Skip to content

Commit 43a35fe

Browse files
Gunn1claude
andcommitted
Fix: Suppress onnxruntime-web webpack warnings and handle VAD worklet bundling
- Add webpack ignoreWarnings for onnxruntime-web critical dependency warnings - Add webpack rule for proper VAD worklet file handling - Reduces frontend Docker logs clutter from VAD library warnings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 3e80405 commit 43a35fe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

frontend/next.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4+
webpack: (config, { isServer }) => {
5+
// Suppress webpack warnings for onnxruntime-web critical dependency
6+
config.ignoreWarnings = (config.ignoreWarnings || []).concat([
7+
{
8+
module: /onnxruntime-web/,
9+
message: /Critical dependency/,
10+
},
11+
{
12+
message: /vad\.worklet/,
13+
},
14+
])
15+
16+
// Handle VAD worklet file
17+
config.module.rules.push({
18+
test: /vad\.worklet\.js$/,
19+
type: 'webassembly/async',
20+
})
21+
22+
return config
23+
},
424
}
525

626
module.exports = nextConfig

0 commit comments

Comments
 (0)