To deploy your Zoco Collective site to Hostinger, you have a few options:
Since your site is built with Next.js, Vercel is the ideal host:
Hostinger does support Node.js apps, but it requires more manual setup:
Download the project:
Prepare your project:
npm install locally to install dependenciesnpm run build to create an optimized buildUpload to Hostinger:
Hostinger's Node.js hosting will need:
.next folder (your build)package.json and package-lock.jsonpublic foldernode_modules (or Hostinger will install from package.json)Configure on Hostinger:
npm run startI'd recommend Option 1 (Vercel) — it's designed for Next.js and handles everything automatically. Would you like me to help with any of these steps?
I see the issue. The API routes are trying to connect to Supabase, but the environment variables aren't set on Hostinger. You have two options:
Add these two variables:
NEXT_PUBLIC_SUPABASE_URL — Your Supabase project URLSUPABASE_SERVICE_ROLE_KEY — Your Supabase service role keyGet these from your Supabase project settings → Project Settings → API.
If you're not using the gallery submissions feature, I can remove these API routes so the build doesn't fail. Which would you prefer?