Nagida Business - cPanel Node.js deployment
===========================================

This bundle is a Next.js standalone server build.
It is NOT a static "out" folder.

Contents
--------
server.js            Next.js production server (use this as the startup file)
.next/               server build + static assets
node_modules/        production dependencies already included
public/              images and other public assets
package.json         app metadata
package-lock.json    deterministic installs if NPM Install is needed
.env                 API/Firebase/maps configuration used by the build
README-DEPLOY.txt    this file

cPanel setup ("Setup Node.js App")
----------------------------------
1. cPanel > Setup Node.js App > Create Application.
2. Node.js version: 20.x (18.18 or newer is required by Next.js 15).
3. Application mode: Production.
4. Application root: a folder outside public_html, for example
   /home/<user>/nagida-business
5. Application URL: the domain or subdomain for this app
   (for example business.example.com).
6. Application startup file: server.js
7. Upload this zip and extract it into the Application root, so that
   server.js sits directly inside that folder.
8. If cPanel prompts to run "NPM Install": it is optional because
   node_modules is already included. Run it only if the app fails to start.
9. Restart the application.

Notes
-----
- cPanel/Passenger provides PORT automatically; server.js reads process.env.PORT.
- Do not set the Application root to public_html. Passenger needs the app files
  in their own folder and maps the domain to the app.
- NEXT_PUBLIC_* values (API URLs, Firebase, Paystack, Google Maps key) are
  compiled into the build. If you change any of them, rebuild with
  `npm run build` and upload the new bundle.
- The Google Maps API routes (/api/place-details and
  /api/places-autocomplete) run on this Node server and need outbound internet
  access to maps.googleapis.com.
- Next.js image optimization is disabled (images.unoptimized). Images are
  served directly from /imgs and Cloudinary, which keeps the bundle portable
  to Linux (no native sharp binaries required).
- Enable SSL/HTTPS for the domain in cPanel after the app starts.
