# EZ Rewards — Namecheap cPanel Deployment

Target URL: https://rewards.ezpage.biz
Application folder: /home/sharqfxo/rewards.ezpage.biz
Startup file: server.js
Recommended Node.js version: 22
Application mode: Production

## Environment variables to add in cPanel

NEXT_PUBLIC_SUPABASE_URL=https://ilujhrmcxlbkhaeqhpps.supabase.co
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=sb_publishable_CMcfEgRdnAErxMBN8DMJEw_0Vb99jyM
NEXT_PUBLIC_SITE_URL=https://rewards.ezpage.biz
SUPABASE_SECRET_KEY=<paste your sb_secret_... value privately in cPanel>
EZ_COUNTER_SESSION_SECRET=<optional; may be left blank initially>

IMPORTANT: Never put the Supabase Secret Key in a public file, screenshot, or chat.

## Deployment order

1. DNS: rewards.ezpage.biz -> 67.223.118.253 (already completed).
2. Upload and extract this project into /home/sharqfxo/rewards.ezpage.biz.
3. Open cPanel > Setup Node.js App > Create Application.
4. Choose Node.js 22, Production.
5. Application root: rewards.ezpage.biz
6. Application URL: rewards.ezpage.biz
7. Application startup file: server.js
8. Create the application.
9. Add the environment variables above.
10. Stop the app temporarily if cPanel requires it before dependency installation.
11. Run NPM Install.
12. Build the Next.js application with `npm run build` from the app's Node virtual environment / cPanel Terminal.
13. Start or restart the application.
14. Open https://rewards.ezpage.biz and test.

Namecheap recommends building a Next.js app before deployment. If the shared server build cannot complete because of its resource limits, build the same package on a local/build machine and upload the generated `.next` folder. The source package is structured for either route.
