Spaces:
Paused
Paused
Update index.js
Browse files
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
|