You've built your Next.js app, it runs great locally, and now comes the question every project eventually faces: where do you put it? Search for hosting advice and you'll find strong opinions in every direction. Some people say you should always use Vercel. Others insist that a simple VPS is cheaper and gives you more control. Others are enthusiastic about edge platforms.
They're all right in some situations. The best choice depends on your budget, your team, the features you use, and how much infrastructure work you're willing to take on. This guide walks through the main options and what to think about, so you can decide without getting lost in the noise.
Vercel
Vercel is the company behind Next.js, and its platform is designed around the framework. That gives it a very smooth experience.
You connect a Git repository, push your code, and your site is deployed. Every branch gets its own preview URL, which is fantastic for reviewing changes with teammates. Scaling is handled for you, and new Next.js features generally work on Vercel first and most completely.
The things to consider are cost and flexibility. Pricing is usage-based, which can be wonderful at a small scale but can grow as traffic, bandwidth, and function usage increase, so it's worth understanding the pricing model before you depend on it. You're also working within the platform's way of doing things, which means moving elsewhere later involves some adjustment.
Self-hosting on a VPS or server
Next.js can run as an ordinary Node.js server, and many teams deploy it on their own virtual private server, often with Docker.
The appeal is control and predictable costs. A small VPS can host your app, your database, and other services for a fixed monthly price, and you decide exactly how everything is set up.
The price you pay is responsibility. You're in charge of updates, security patches, SSL certificates, backups, monitoring, and scaling. If something breaks at midnight, it's your problem. Some features also need extra attention when self-hosting. Image optimization, for example, uses server resources, and caching across multiple servers requires additional configuration.
If your team is comfortable with servers, or has someone who is, this can be a great option. If not, the time you spend on operations may cost more than the hosting fees you saved.
Cloudflare
Cloudflare offers hosting for full-stack applications on its large global network, and there are adapters that let Next.js run there.
The advantages include a huge edge network, attractive pricing, and tight integration with other Cloudflare products such as storage, databases, and security features. For sites with global audiences, serving content close to users can help performance.
The main thing to watch is compatibility. The runtime isn't a standard Node.js environment, so certain libraries and features may behave differently or need adjustments. Before committing, check that everything your app depends on works there, and test with a real build rather than assuming.
Other platforms
There are many other places to run a Next.js app. Netlify, AWS Amplify, Render, Fly.io, and container-based services from the major cloud providers all support it in different ways. They differ in how much of the framework's feature set they support, how deployments work, and how pricing is structured.
If you're comfortable with a specific cloud provider already, deploying there may be the easiest path, since you can keep everything under one roof.
What to think about when choosing
Rather than searching for the perfect host, consider these factors.
Feature support. List the Next.js features you use: server rendering, image optimization, middleware, incremental regeneration, and so on. Confirm that your target platform supports them well. This is the most common source of unpleasant surprises.
Cost. Estimate your expected traffic and compare it against the pricing models. Look beyond the base price to bandwidth, function executions, build minutes, and any limits on team members or projects.
Operations. Be honest about how much infrastructure work your team can handle. Managed platforms trade money for time. Self-hosting trades time for money.
Performance and location. Think about where your users are. A platform with servers or edge locations near them will usually feel faster.
Portability. Consider how hard it would be to move later. The more you rely on platform-specific features, the harder leaving becomes. That isn't necessarily bad, but it's good to know.
Developer experience. Preview deployments, automatic builds, rollbacks, and good logs can save a lot of time every week.
A few practical scenarios
If you're building a small project or a startup and want to move fast, a managed platform is often the most efficient choice, because you spend your time on the product instead of the infrastructure.
If you have a steady, predictable workload and a team comfortable with servers, self-hosting can be economical and flexible.
If your audience is spread across the world and you're already using other Cloudflare services, an edge platform can be a natural fit, as long as your dependencies are compatible.
And if your company already has standards or contracts with a particular cloud provider, following them may save a lot of paperwork and friction.
Don't forget the database and other services
Your app probably isn't just a Next.js server. It likely needs a database, file storage, maybe a cache, email sending, and background jobs. Where those live matters as much as where the app itself runs. A fast app that makes slow calls to a database on the other side of the world won't feel fast.
When comparing hosts, check how easily they connect to the database and services you plan to use, and try to keep your app and database in the same region. Some platforms offer built-in storage and databases that are convenient, while others expect you to bring your own. Either approach works, as long as you plan it deliberately.
Domains, SSL, and the small stuff
Most managed platforms handle SSL certificates and domain setup with a few clicks. On a VPS, you'll set them up yourself, usually with a reverse proxy and an automated certificate tool. It isn't hard, but it's one more thing to configure and remember to monitor.
Also think about environment variables and secrets, since each platform handles them differently. Keep a clear list of what your app needs, so moving between environments doesn't turn into a treasure hunt.
Monitoring and backups
Whichever option you choose, set up basic monitoring so you know when something's wrong: uptime checks, error tracking, and some visibility into performance. If you run your own database or server, also set up automatic backups and test restoring from them. It's the kind of preparation that feels unnecessary right up until the day it saves you.
Try it before you commit
Many platforms offer free tiers or trials. Deploy a small version of your real app to two or three of them and compare the experience. Look at how long deployments take, how clear the logs are, whether all your features work, and what the estimated bill looks like. An hour or two of testing is worth far more than hours of reading opinions.
Wrapping up
Managed platforms reduce operational work and are very convenient for many teams, while self-hosting offers control and predictable costs for those who are comfortable with operations. Edge platforms bring global performance, as long as your app plays well with their runtime. Before committing, check feature compatibility, estimate your costs at realistic traffic levels, and think about how easy it would be to move later. A bit of planning now saves a lot of surprises down the road, and the good news is that your first choice doesn't have to be your last.