My own portfolio & dashboard
How I Host My Next.js Apps on Hostinger with GitHub Auto-Deploy
I moved three production Next.js apps to Hostinger Web Apps connected to GitHub. Every push to main deploys automatically — domain, SSL, email and hosting in one place. Here is the setup, what each Hostinger service is for, and how to get 20% off.
3
Apps hosted
git push
Deploy
3–10 min
Go-live time
20% off
Your discount
Disclosure: the Hostinger links on this page are my referral links. If you buy through them you get 20% off your first purchase and I earn a commission, at no extra cost to you. I only recommend it because I host my own live projects on it.
The short version
I moved three production apps — this portfolio (Next.js), my admin dashboard (Next.js + Prisma + Postgres) and a supporting web app — to Hostinger Web Apps. Each one is connected to its GitHub repository. I push to main, Hostinger builds it and the new version is live a few minutes later. No server to babysit, no manual FTP, no surprise bandwidth bill.
The problem I had
Before the move my projects were spread across different free tiers and platforms:
- Each app had its own dashboard, own limits and own billing rules.
- Free tiers paused or throttled things at the worst moment.
- Domains, email and hosting were in three different places, so a DNS change meant logging into everything.
- Scaling up on some platforms gets expensive very quickly once a site gets real traffic.
I wanted one place for domain, email, hosting and Node.js apps, with deploys as simple as a git push.
Why Hostinger
| Need | What Hostinger gives |
|---|---|
| Deploy from GitHub | Connect a repo, pick the branch, every push to that branch auto-deploys |
| Node.js / Next.js apps | Web Apps run the real Node server (SSR, API routes, server actions) |
| Domain + DNS | Domain, DNS records and SSL in the same panel |
| Business email | Mailboxes on your own domain (e.g. hello@yourbrand.com) |
| Price | Much cheaper than most "serverless" platforms once traffic grows |
| Support | 24/7 live chat |
How I set it up (step by step)
- Buy the plan — for Node.js apps choose a plan that includes Web Apps / Node.js (Business or Cloud). For a simple WordPress or static site the cheaper Premium plan is enough. Use the referral link to get 20% off.
- Add your domain — register a new one or point your existing domain's nameservers to Hostinger. SSL is issued automatically.
- Create a Web App → Import from GitHub — authorise GitHub, pick the repository and the
mainbranch. - Set build settings — for Next.js: install
npm ci, buildnpm run build, startnpm start. Choose the Node.js version your project needs. - Add environment variables — database URL, API keys, JWT secret. Never commit
.envto GitHub; paste the values in the panel instead. - Push to deploy — every
git push origin mainnow triggers a fresh build. My builds go live in roughly 3–10 minutes.
My GitHub workflow on top of it
git checkout -b feature/new-section
# ...make changes...
git commit -m "Add new section"
git push origin feature/new-section
git checkout main && git merge --no-ff feature/new-section
git push origin main # Hostinger picks this up and deploys
Work happens on feature branches; only main is connected to Hostinger, so nothing half-finished goes live.
Which Hostinger service should you pick?
- Premium Web Hosting — WordPress, landing pages, small business sites.
- Business Web Hosting — more resources plus Node.js Web Apps; the sweet spot for Next.js portfolios and small SaaS.
- Cloud Hosting — bigger traffic, more RAM/CPU, still fully managed.
- VPS — full root access when you want Docker, custom servers or background workers.
- Domains & Business Email — keep your brand domain and email next to your site.
- Website Builder (with AI) — if you are a business owner and don't want to write code.
Tip: the biggest discount is on longer terms (12–48 months). Check the renewal price before you pay, and use the referral link for the extra 20% on the first purchase.
Honest downsides
- Build logs are simpler than on dedicated CI tools.
- There are no built-in cron jobs for Web Apps like some serverless platforms have, so I run scheduled tasks inside the app itself.
- Renewal prices are higher than the first-term promo price — plan for that.
None of these were deal-breakers for me.
Result
- 3 apps running on one account
- 1 git push = 1 deploy, no manual uploads
- Domain, DNS, SSL and email in one panel
- Lower and more predictable monthly cost
If you are a developer, freelancer or business owner who wants a site or app online without managing servers, this setup is hard to beat.
Need help? I set up Hostinger + GitHub auto-deploy for clients — contact me and I'll get your site live.
Built with
