// CPanel Passenger requires a root server.js file to boot Node apps.
// Next.js 'standalone' builds an optimized server in .next/standalone/server.js
// We essentially proxy the boot process to it.

process.env.NODE_ENV = 'production';

// Passenger provides specific PORT environment variable.
const PORT = process.env.PORT || 3000;
process.env.PORT = PORT;

// Load the compiled standalone server
require('./.next/standalone/server.js');
