mikmc commited on
Commit
fba2573
·
verified ·
1 Parent(s): ffaa1d1

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -1
index.js CHANGED
@@ -168,6 +168,9 @@ addon.defineStreamHandler(async (args) => {
168
  }
169
  });
170
 
 
 
 
 
171
  // Start the server with the corrected method
172
- const { serve } = server; // Destructure to get the serve function
173
  serve({ port: PORT }); // Start the server on the given port
 
168
  }
169
  });
170
 
171
+ // Debugging: Check the server module
172
+ console.log('Server module:', server); // Log the server object
173
+ console.log('Destructured serve function:', serve); // Log the serve function
174
+
175
  // Start the server with the corrected method
 
176
  serve({ port: PORT }); // Start the server on the given port