// Phusion Passenger (cPanel "Setup Node.js App") entry point.
// This backend is an ES module ("type":"module" in package.json), which
// Passenger's loader cannot always require() directly. Passenger loads this
// CommonJS file, which then dynamically imports the real ESM server so the
// app boots correctly. Keep this file as the app's "Application startup file".
import('./src/server.js').catch((err) => {
  console.error('Failed to start SBM backend:', err);
  process.exit(1);
});
