Skip to content

Commit 17fb132

Browse files
ENG-616: Add node:module and net module fallbacks to fix Remotion renderer imports
Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
1 parent 4ac8f18 commit 17fb132

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,21 @@ const nextConfig = {
8080
'node:fs': 'fs',
8181
'node:http': 'http',
8282
'node:https': 'https',
83+
'node:module': 'module',
84+
'node:net': 'net',
8385
'node:os': 'os',
8486
'node:path': 'path',
8587
'node:stream': 'stream',
8688
'node:url': 'url',
8789
'node:util': 'util',
8890
'node:zlib': 'zlib',
8991
});
92+
93+
// Add fallback for 'net' module
94+
config.resolve.fallback = {
95+
...config.resolve.fallback,
96+
'net': false,
97+
};
9098
}
9199

92100
return config

0 commit comments

Comments
 (0)