To deploy a Next.js app on Hostinger, use a plan with web apps (Node.js) hosting, add a Node.js app in hPanel, connect your GitHub repository or upload a ZIP, choose Next.js and your build command, add environment variables, and start the build. Hostinger installs your packages, runs the build and serves the app with full server rendering.
This article contains affiliate links.
Which Hostinger plans run Next.js
On 30 November 2026, Hostinger's web apps hosting page listed Node.js frameworks, including Next.js, Nuxt, Express, NestJS and Astro, on two plans. The entry Premium web hosting plan didn't list Node.js apps.
| Plan | Resources | Price shown (48 months, sale) | Renews at |
|---|---|---|---|
| Unlimited | 2 vCPU, 3 GB RAM, 50 GB NVMe, 1 managed database | $2.79/mo ($133.92 upfront) | $16.99/mo |
| Cloud Startup | 4 vCPU, 4 GB RAM, 100 GB NVMe, 1 managed database | $7.99/mo ($383.52 upfront) | $25.99/mo |
Both list Git and ZIP deploys, a CDN, daily backups, a dedicated IP and no usage fees. The prices were a Cyber Week sale, so check the current ones on Hostinger's web apps hosting page. A typical Next.js site with a database runs fine on the smaller plan. Move to Cloud when builds or busy hours start to struggle.
Step by step
- Check the app builds and starts on your machine. Run
next buildand thennext start. If that works locally, it will work on Hostinger. Hostinger runs the normal Node.js server, so you don't needoutput: "export". - Pick where the code comes from. Connect a GitHub repository (Hostinger can redeploy on every push) or upload a ZIP of the project without
node_modulesand.next. A ZIP per release lets you choose exactly when it goes live. - Set the build settings. Framework Next.js, a current Node.js LTS version (such as 22), your package manager, the build command and the output folder
.next. If you use a database, run migrations first in the build command, thennext build, so the schema is ready before the new code starts. - Add environment variables in hPanel, never in the ZIP or repository. Variables used at build time, such as
NEXT_PUBLIC_*, only change after a new build. - Create the database in hPanel if you need one. From the app, connect to
127.0.0.1on port 3306. The srvNNNN.hstgr.io host is only for connections from outside Hostinger. - Start the build and read the log. A typical build takes a few minutes. If it fails, the log names the step.
- Connect your domain and SSL, and turn on the HTTPS redirect.
Common mistakes to avoid
- Overlapping deploys. A new build replaces the app's files, so a ZIP uploaded while another build is running can be gone by the time its own build starts, and that build fails with no log. Upload each ZIP right before its own build, one at a time.
- Stale pages from the CDN. Prerendered pages can go out with a one-year cache lifetime, and the CDN keeps serving old versions after a deploy. Set
export const revalidate = 3600(or similar) on pages that change andexpireTimeinnext.config, and purge the CDN in hPanel after big changes. - Purging the wrong domain. Each domain or alias has its own CDN cache, so purging one leaves the others stale.
- The package security scan. hPanel flags known-vulnerable npm packages. Leave tools you don't need at build time (such as linters) out of the uploaded package list, and pin a fixed version of a flagged package with npm
overrides. Read each warning: some packages are only used by build tools. - Building with an unpatched Next.js. Newer Next.js versions refuse to build when the installed version has a known critical security issue. Keep Next.js on the latest patch.
SEO for a Next.js app on Hostinger
Hosting gets your pages online. These Next.js features make them easy for search engines and AI search to read:
- Metadata on every page: a unique title, a description, a canonical URL and Open Graph tags through the
metadataexport. Check how links look when shared with the Open Graph checker. - A sitemap and robots.txt from
app/sitemap.tsandapp/robots.ts, so new pages are listed as soon as they deploy. See XML sitemap optimization. - Server-rendered text. Server components send real HTML, which AI crawlers that don't run JavaScript can read. Test with the AI crawler checker.
- Structured data as JSON-LD in a script tag. The schema generator writes it for you.
- An llms.txt route listing your key pages for AI assistants. See what llms.txt is.
- IndexNow after each release, so Bing and other engines pick up changed pages quickly.
When the site is live, run the free SEO, AEO and GEO checker on your homepage, or add the site to Sonnetpilot for a free 25-page audit. For whether the host itself affects rankings, read is Hostinger good for SEO?
Hostinger web hosting
LiteSpeed servers, a CDN, free SSL and free migrations on every plan, with a 30-day money-back guarantee.
Hostinger is a trademark of its owner, and Next.js is a trademark of Vercel. Plan details and prices are from hostinger.com/web-apps-hosting and hostinger.com/web-hosting as shown on 30 November 2026, during a sale.
Frequently asked questions
Can Hostinger host a Next.js app?
Yes. Hostinger's web apps hosting runs Node.js apps and lists Next.js among the supported frameworks, with server rendering and API routes. On 30 November 2026 it was listed on the Unlimited plan and the Cloud plans, not on the entry Premium plan.
How do I deploy Next.js to Hostinger?
In hPanel, add a Node.js web app, connect a GitHub repository or upload a ZIP of your project, choose Next.js, the Node.js version and your build command, add environment variables, and start the build. Hostinger installs packages, builds the app and runs it. Then connect your domain and SSL.
Does Hostinger support Next.js server-side rendering?
Yes. It runs the Node.js server, so server components, server-side rendering, route handlers and API routes work. You don't need a static export.
How do I connect a database to a Next.js app on Hostinger?
Create a MySQL database in hPanel and connect from the app to host 127.0.0.1 on port 3306. Use 127.0.0.1 rather than localhost, because localhost can resolve to IPv6, and keep the srvNNNN.hstgr.io host for connections from outside Hostinger.
Why don't my changes show after deploying?
Usually a cache. Prerendered Next.js pages can be held by the CDN for a long time. Purge the CDN in hPanel, and set revalidate on pages that change so they refresh on their own. Build-time environment variables also need a new build.









