FIX FOR cPanel (cors / Prisma 7 / DATABASE_URL missing) ======================================================= Your app root is: /home/bigwxubd/b.bigwesttours.com URL: https://backend.bigwesttours.com IMPORTANT CAUSES OF YOUR ERRORS ------------------------------- 1) "Prisma schema validation ... url is no longer supported" → You ran Prisma 7 via "npx prisma". This project MUST use Prisma 6.19.3. → Always run: ./node_modules/.bin/prisma generate → NEVER run: npx prisma generate (npx can download Prisma 7) 2) "Cannot find package 'cors'" → Dependencies were not installed. Run install.sh below. 3) "DATABASE_URL is missing" → .env was missing OR env vars not set in cPanel. → This package includes a .env file. Also add the same vars in cPanel → Setup Node.js App → Environment Variables. SETUP STEPS ----------- 1) cPanel → Setup Node.js App → STOP APP 2) Upload/extract this zip into: /home/bigwxubd/b.bigwesttours.com (overwrite files; keep Application startup file = app.js) 3) In Terminal, paste EXACTLY: source /home/bigwxubd/nodevenv/b.bigwesttours.com/22/bin/activate && cd /home/bigwxubd/b.bigwesttours.com bash install.sh 4) In cPanel Node.js App, confirm Environment Variables include at least: DATABASE_URL SESSION_SECRET FRONTEND_URL=https://bigwesttours.com (SMTP_* if you want email) 5) START / RESTART the app 6) Test: https://backend.bigwesttours.com/health https://backend.bigwesttours.com/api/public/bootstrap Do NOT add cors/express/prisma one-by-one in the NPM Modules UI.