Hosting a Next.js app on a Hetzner VPS via Coolify
A quick guide to host a Next.js app on a Hetzner VPS via Coolify:
- Set up an Ubuntu Hetzner VPS and grab the public IP
- Connect to the server from your terminal via SSH
ssh root@[IP_ADDRESS] - Update and upgrade the Ubuntu server
sudo apt update && sudo apt upgrade - Install Coolify on the server by running the following command
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash - After successful installation, visit
http://[IP_ADDRESS]:8000and register a new account - Connect your private or public GitHub repo and publish your Next.js app
I have also created this step-by-step YouTube video explaining everything from creating the VPS to installing Coolify and hosting the website.
Some links here are affiliate or referral links. Buying through them supports this site at no extra cost to you, and it doesn't affect my opinions.