File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,16 +70,16 @@ const config: NextConfig = {
7070 turbopack : {
7171 resolveAlias : {
7272 fs : {
73- browser : './empty .ts' , // Point to empty module when fs is requested for browser
73+ browser : './stub .ts' ,
7474 } ,
7575 async_hooks : {
76- browser : './empty .ts' , // Point to empty module when async_hooks is requested for browser
76+ browser : './stub .ts' ,
7777 } ,
7878 '@/observability/logger' : {
79- browser : './empty .ts' ,
79+ browser : './stub .ts' ,
8080 } ,
8181 '@/observability/logger/lib/logger-context' : {
82- browser : './empty .ts' ,
82+ browser : './stub .ts' ,
8383 } ,
8484 '@/observability/lib/tracing' : {
8585 browser : './src/observability/lib/tracing.browser.ts' ,
Original file line number Diff line number Diff line change 1- // Empty module to satisfy Turbopack resolveAlias fallback for Node.js modules
1+ // Stub module to satisfy Turbopack resolveAlias fallback for Node.js modules
22// See turbopack config in next.config.ts
33
44// No-op function that returns itself for chaining
@@ -9,4 +9,7 @@ export const createLogger = () => ({
99 debug : ( ) => { } ,
1010} )
1111
12+ // Stub for fs.promises (used by server-only code that Turbopack traces into client bundles)
13+ export const promises = { }
14+
1215export default { }
You can’t perform that action at this time.
0 commit comments