// ES module server wrapper that provides __dirname and __filename for Prisma import { fileURLToPath } from 'url'; import { dirname } from 'path'; // Provide __dirname and __filename for Prisma const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); global.__dirname = __dirname; global.__filename = __filename; // Import and start the server import('./build/index.js');