Hostwizly
Find Hosting

How To Host Next.js On Hostinger (Static & SSR 2026 Guide)

Last Updated 13 September 2026 by Jarvis Silva

Next.js is the industry-leading React framework for production web applications, offering blazing-fast hybrid rendering and SEO optimization.

Depending on whether your app is a static website (blogs, portfolios, landing pages) or requires dynamic SSR and API routes, Hostinger offers two distinct, high-performance hosting pathways. In this complete 2026 guide, we cover both methods step by step.

⚡ Quick Decision: Which Hostinger Plan for Next.js?

Static Next.js Apps

Blogs, docs, marketing sites, client portfolios

✓ Use Hostinger Shared Hosting ($2.49/mo) with output: 'export'.

Dynamic SSR & API Routes

Auth, databases, real-time dashboards, e-commerce

✓ Use Hostinger KVM VPS ($5.49/mo) with Node 20 LTS & PM2.

Method 1: Deploy Static Next.js on Hostinger Shared Hosting

If your website does not require server-side functions at runtime, exporting it as static HTML/CSS gives you maximum security, near-instant load times, and zero server maintenance:

Step 1: Configure next.config.js for Static Export

In your project root, open next.config.js (or next.config.mjs) and add output: "export":

/** @type {import('next').NextConfig} */

const nextConfig = {

  output: "export",

  images: {

    unoptimized: true,

  },

};

module.exports = nextConfig;

Step 2: Build Your Application

Run the build command in your local project terminal:

npm run build

Next.js will generate a folder named out containing your pre-rendered HTML files, images, and static JavaScript chunks:

Static out folder in Next.js build

Step 3: Upload /out Contents to Hostinger File Manager

  1. Log in to Hostinger hPanel, select your website, and open Files > File Manager.
  2. Hostinger hPanel File Manager navigation
  3. Open public_html.
  4. Zip all the files inside your local out directory (make sure you zip the contents, not the outer folder itself).
  5. Upload the zip archive into public_html and right-click to Extract.
  6. Hostinger out folder contents in file manager

Method 2: Deploy Dynamic Next.js SSR on Hostinger KVM VPS

If your Next.js application requires dynamic server features, cookies, authentication, or server-side API routes, deploy it on a Hostinger KVM VPS using Node.js and PM2:

  1. In next.config.js, enable standalone output:output: "standalone".
  2. On your Hostinger VPS, install Node 20 LTS and PM2 (read our complete Node.js on Hostinger VPS guide).
  3. Run npm run build on the server and start the Next.js server using PM2:

pm2 start npm --name "next-app" -- start

Get Hostinger Web Hosting at 75% OFF + Free Domain

Host your Next.js website with high-speed NVMe storage, unlimited free SSL certificates, and 99.9% uptime from just $2.49/month.

Get Now

Frequently Asked Questions

Can I host dynamic Next.js (SSR & API routes) on Hostinger Shared Hosting?

Hostinger Shared Hosting only supports static HTML/CSS/JS files (generated via output: 'export'). If your Next.js app uses Server-Side Rendering (getServerSideProps, dynamic server components) or API Routes, you should deploy it on a Hostinger KVM VPS using Node.js or Docker.

How do I configure Next.js for static export?

In next.config.js (or next.config.mjs), add 'output: "export"' and 'images: { unoptimized: true }' inside your nextConfig object, then run 'npm run build'. Next.js will generate a standalone 'out' folder with your pre-rendered HTML.

How much does it cost to host Next.js on Hostinger?

For static Next.js export, Hostinger Premium Shared Hosting costs just $2.49/mo (includes free domain and SSL). For dynamic full-stack Next.js SSR, Hostinger KVM 2 VPS starts at $5.49/mo.

Can I use Next.js Image Optimization on Hostinger Shared Hosting?

Because Next.js image optimization requires an active Node.js server to resize images on the fly, static exports on shared hosting require 'images: { unoptimized: true }' or a third-party image loader like Cloudinary. On a Hostinger VPS, full image optimization works natively.

Related Tutorials:

About the author

I am Jarvis Silva, a tech enthusiast. I have 5 years of experience in website hosting and development, Now sharing all my knowledge related to web hosting and other various tech on the internet through Hostwizly.

Related Articles

How To Point Hostinger Domain To AWS EC2

How To Connect Hostinger Domain To Vercel

How To Check MySQL Version In Hostinger

Host Django Website On Hostinger VPS

How To Add SPF Record In Hostinger

How To Increase WP Memory Limit In Hostinger

How To Download Files From Hostinger File Manager

How To Find FTP Password In Hostinger

How To Add Signature In Hostinger Webmail (2026 Guide)

How To Connect Namecheap Domain To Hostinger

How To Add DKIM Record In Hostinger Email

How To Add DMARC Record In Hostinger

How To Transfer Domain From Wix To Hostinger

How To Switch From Hostinger Website Builder To Wordpress

How To Find IP Address In Hostinger (2026 Guide)

How To Purchase Domain And Hosting From Hostinger

How To Install Wordpress In Hostinger

How To Extract Zip File In Hostinger (2026 Guide)

How To Install Wordpress Theme In Hostinger

How To Backup Emails From Hostinger

How To Connect Hostinger Domain To Shopify

How To Setup Hostinger Email On Outlook (2026 Guide)

How To Setup Hostinger Email On Gmail (2026 Guide)

How To Add TXT Record In Hostinger

How To Add CNAME Record In Hostinger

How To Set A Cron Job In Hostinger

How To Install Wordpress On Subdomain In Hostinger

Deploy Angular App On Hostinger Shared Hosting

How To Change PHP Version In Hostinger

How To Install Moodle On Hostinger

Can You Get Free Hosting On Hostinger? (2026 Truth)

Difference Between Hostinger.com And Hostinger.in

Host Laravel Project On Hostinger Shared Hosting

How To Host Node.js App On Hostinger (2026 Guide)

Host React App On Hostinger Shared Hosting

Is Hostinger Good For Buying A Domain Name? (2026 Review)

How to add hostinger domain to netlify

How To Transfer Domain From Hostinger To Godaddy

How To Uninstall WordPress In Hostinger (2026 Guide)

How To Connect Godaddy Domain To Hostinger

How To Host PHP Website On Hostinger (2026 Guide)

How To Change Server Location In Hostinger (2026 Guide)

How To Create Subdomain In Hostinger (2026 Guide)