# Deployment Guide for cPanel (Safe Version with Jimp)

This version of the backend has been modified to remove binary dependencies like `sharp` which often cause "500 Internal Server Error" on shared hosting. It uses `jimp` instead, which is slower but 100% compatible with all environments.

## Deployment Steps
1. **Compress** the `cpanel-deploy` folder contents into a `.zip`.
2. **Upload** to cPanel File Manager.
3. **Extract** the files.
4. **Setup Node.js App** in cPanel:
   - Version: v18 or v20.
   - Application Startup File: `server.js`.
   - Run NPM Install.
5. **Set Environment Variable:**
   - `GEMINI_API_KEY`: Your key.

## If 500 Error Persists
- Check the log file `stderr.log` in the application folder.
- Ensure `uploads/assets` folder exists and is writable (Permission 755).
