12 lines
391 B
JavaScript
12 lines
391 B
JavaScript
// Entry point for Node.js server in Capacitor app
|
|
// This file is copied to dist/nodejs-project/index.js during build
|
|
|
|
// Import and start the server
|
|
import('./src/index.js').then(() => {
|
|
console.log('[Node.js] Server module loaded and started');
|
|
}).catch((error) => {
|
|
console.error('[Node.js] Error starting server:', error);
|
|
// Don't exit - let the error be handled by the app
|
|
});
|
|
|