If you’ve built a static site with Astro, Next.js or Hugo, hosting it on Hostinger is simple and affordable. Let’s walk through it step by step.
Why Hostinger?
Hostinger offers one of the best value-for-money hosting options:
- Price: Starting at $2.99/month
- Free SSL: Let’s Encrypt included
- Performance: LiteSpeed servers
- Support: 24/7 live chat
Step 1: Build Your Project
First, generate the static files:
# For Astro
npm run build
# Output: dist/ folder
# For Next.js (static export)
npx next build && npx next export
# Output: out/ folder
# For Hugo
hugo --minify
# Output: public/ folder
Step 2: Access hPanel
- Log in to Hostinger hPanel
- Go to Websites → select your domain
- Open the File Manager
Step 3: Upload Files
- Navigate to the
public_htmlfolder - Delete default files (if any)
- Upload the contents of your
dist/(orout/orpublic/) folder - Make sure
index.htmlis at the root ofpublic_html
Step 4: Configure SSL
- In hPanel, go to Security → SSL
- Install the free Let’s Encrypt certificate
- Enable HTTP → HTTPS redirect
Tip: Automate with FTP
For frequent deployments, use FTP:
# Using lftp for automated deploys
lftp -u user,password ftp.yourdomain.com -e "
mirror --reverse --delete --verbose dist/ public_html/
quit
"
Result
Your site will be live at https://yourdomain.com within minutes!
Need help with hosting? GeniusLab offers full support.