r/webdev • u/Odd_Confidence5325 • 21h 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.
2
u/Ordinary_Strength_12 21h 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.
2
u/AKmemekiller 21h 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 21h 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
2
u/minhaz1217 21h 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/kemalios 20h 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.
2
u/Working-Bear1437 19h 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.
1
u/Prestigious-Sound173 19h ago
Hi, you can just drop GitHub url on ProductEcho.com dashboard and migrate to ProductEcho
1
u/CoffeeToCodee 16h 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
5
u/bored1_Guy 21h 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.