r/webdev 1d ago

Question Can a Next.js full-stack website be migrated to Hostinger?

Hello everyone! I’m not a web developer and I have limited experience with website management, but I’ve been doing some research. I’m posting here because I’d like to save some time and get advice from people with more experience.

Our company currently has a website hosted on Hostinger, and we already have our main domain (eg. storename.com) set up there.

My manager asked me to check if we can migrate another website, for example shop.storename.com to our Hostinger account. I contacted the developer of the shop.storename.com website and asked what CMS it uses. He told me that it is Next.js full stack.

So my main question is: is it possible to migrate a Next.js full stack website like shop.storename.com to hostinger, while our main domain storename.com is already hosted there?

For context, I'm the new and only IT support person in our company, so I'm trying to figure this out even though web development isn't really my area.

Thank you so much in advance for any advice!

Edit: For context, the shop.storename.com is an e-commerce website where we sell water heater products, sanitary ware, and furniture. It has an add to cart button and you can make payments.

10 Upvotes

19 comments sorted by

3

u/bored1_Guy 1d ago

Check if they have a next.js hosting service, if not then just buy a small vps to run the Next.js site inside a container. Also it's possible to setup sub domain with that site. If you have any issues setting that up then you might need to use something like Coolify to do the hard work for you. But make sure you have some space for running coolify itself.

3

u/Working-Bear1437 1d ago

shared hosting on Hostinger does not support Next.js full stack applications. You must use a VPS plan or switch to a platform like Vercel because standard shared environments lack the persistent Node.js runtime required for server-side rendering and API routes.

2

u/AKmemekiller 1d ago

You need to check if hostinger provides subdomain capabilities. I think you will have to buy the subdomain as well.

Nextjs is not a CMS. Maybe you asked the wrong question or they answered it wrongly.

But theoretically it is possible to point it to your new subdomain. You need to edit the cname and A record in hostinger to point to the Nextjs server. And remove the existing records for their current domain on their existing Domain name provider.

I am sure the comments section will correct me.

1

u/Odd_Confidence5325 1d ago

yeah I asked the developer about the CMS because I also consulted a friend who has little experience in migrating to hostinger. She advises me to asked the dev what CMS he use because if it is not wordpress, then the migration would be manual. Though there is a part in hostinger where I can give access to the developer and assign a role to him, so that he can do it.

3

u/AKmemekiller 1d ago

Don't give access to prod instances!

2

u/minhaz1217 1d ago

Nextjs is basically a nodejs app. If you have cpanel access IE shared hosting. You should have access to node environment if not ask support to enable it. Also ask support about restrictions on hosting a nodejs app.

If you have vps from hostinger you'll for sure be able to host the app.

I've my business 2 years paid for shared hosting account got blocked in 6 months with no refund and no way to access the admin panel. I've heard similar report from many others as well. So switch from hostinger as soon as you can. And before doing anything talk to support.

2

u/Jooodas 1d ago

Yes it can but it’s not as simple as deploying on vercel. But yea it’s totally possible, I’ve done it on hostinger. You’ll need a VPS tho.

2

u/Proud-Company-7771 13h ago

tbh the subdomain part isnt the hard part, you can point a subdomain anywhere. the real question is whether your current hosting plan can actually run a node.js application. shared hosting almost never supports that, so check with your provider first

1

u/Odd_Confidence5325 13h ago

I already check it and the plan we have does not support hosting an node.js app. We have to buy another plan for that.

1

u/Mabenue 1d ago

It depends. If it’s currently hosted on Abercrombie it might use features you can use when self hosting it. You need to understand more about what the current set up is.

1

u/Prestigious-Sound173 1d ago

Hi, you can just drop GitHub url on ProductEcho.com dashboard and migrate to ProductEcho

1

u/CoffeeToCodee 1d ago

Yes, but it depends on the Hostinger plan. If the Next.js app uses SSR, API routes, or other server-side features, you'll need hosting that supports a Node.js runtime, such as a VPS. If it's a static-exported Next.js site, regular hosting is usually enough. I'd first check which Next.js features the current site is using before migrating

1

u/dhyansoftware 15h ago

Yes, it’s possible. Having storename.com already hosted on Hostinger does not prevent you from hosting shop.storename.com there as well.

The setup could be:

storename.com
→ Existing website

shop.storename.com
→ Next.js full-stack e-commerce application

Hostinger's current Cloud plans support Node.js/Next.js, so it may be possible to run it under the same Hostinger account.

The important part is what the Next.js application depends on. Before migrating, ask the developer for:

  • Next.js + Node.js versions
  • Git repository / deployment instructions
  • Build and start commands
  • Environment variables
  • Database type + where it is hosted
  • Payment gateway + webhooks
  • Email service
  • Redis/queues/cron jobs, if any
  • File/image storage

Since this is an e-commerce website with cart + payments, don't treat it like moving a normal website. You need to test the application, database, checkout, payment webhooks, emails and other backend services.

I'd do it this way:

  1. Take a complete backup.
  2. Deploy the Next.js app to a staging/test environment.
  3. Test login, products, cart and checkout.
  4. Test a payment + webhook.
  5. Test order emails/notifications.
  6. Configure shop.storename.com.
  7. Switch production only after everything passes.

Also, not every Next.js project will necessarily run on hosting without changes. It depends on the architecture and external services being used.

One more thing since you mentioned this is an e-commerce store: if you ever need advanced product customization/add-ons, take a look at Smart Add-Ons for WooCommerce from Dhyan Software.

It supports things like:

  • Conditional show/hide logic
  • Text, checkbox, radio, dropdown and image selections
  • File uploads
  • Date picker
  • Fixed, percentage and formula-based pricing
  • Per-quantity pricing
  • Product/category/global add-on groups
  • WooCommerce Cart & Checkout Blocks
  • Analytics and A/B testing
  • Developer hooks and REST API

Demo: https://demo-smart-addons.dhyansoftware.com/

More details: https://dhyansoftware.com/smart-addons/

I work on the product at Dhyan Software, so happy to help if you have questions around WooCommerce product customization as well.

For the migration itself, if you post the current hosting architecture or package.json, people here can probably tell you pretty quickly whether Hostinger is suitable or whether you'd be better off with a VPS/cloud platform.

1

u/Prestigious-Sea2971 15h ago

Only on their VPS plans since Next.js needs a Node process running, and with a live shop taking payments I'd pay the original developer to handle the move.

2

u/MeButItsRandom 1h ago

We run a full stack site on hostinger. Db, Django, nextjs, and temporal workers. Orchestrated in docker. Works great.

1

u/Ordinary_Strength_12 1d ago

It's depend. If the hostinger It's a VPS absolutely yes. Very likely you'll need to set up nginx or something alike to handle the distribution for the two domains. (A proxy)

Also need to make sure your VPS has enough resources to run them both.

If it's a cPanel or something I'm not quite sure.

1

u/kemalios 1d ago

You're asking the right question. Next.js full stack means the site runs on a Node.js server, so it's not files you can just drop into Hostinger's public_html folder. Shared hosting does offer Node.js through cPanel, but it comes with limits around ports, background tasks, and environment variables that can break a full-stack app. A small VPS is the safer, more predictable route, and that doesn't have to cost much.

The subdomain part is easy. shop.storename.com is just a DNS record, you can point it at the same or a different server. So hosting the shop on a separate VPS while the main domain stays on Hostinger works fine.

What actually decides this is the site's dependencies. Does it use a database? A headless CMS? Is the current developer handing over the full source code and the production secrets? If any of those is missing, migration stalls regardless of host. I run my own self-hosted setup with Docker and Coolify, so the Hostinger-specific limits are reasoning rather than first-hand, but the dependency check applies anywhere.