# Next.js Hosting on Your Own Cloud

Run Next.js as a Node.js web Service when your app renders pages or handles requests on the server. If every page can be generated at build time, publish a static export. Blossom has a starter for each setup.


## Choose a runtime

| Your app needs | Start with |
| --- | --- |
| Server-rendered pages, sign-in backed by server-side cookies, or dynamic Route Handlers | [Next.js web Service](/deploy/nodejs-nextjs/) |
| Prebuilt pages and browser-side code that calls an existing backend | [Static Next.js site](/deploy/nextjs/) |
| Server-rendered pages plus work that runs beyond a web request | A web Service and a private worker. Add a [scheduled Job](/docs/apps/jobs/) for tasks on a timer. |

Next.js supports runtime features through `next start`. With a static export, the build outputs files that can be served directly. [Next.js self-hosting guide](https://nextjs.org/docs/app/guides/self-hosting) · [Next.js static exports](https://nextjs.org/docs/app/guides/static-exports)

## Deploy to Blossom

1. **Start with the matching recipe.** For the Node.js path, make sure your repository builds with `npm run build` and starts with `npm start`. Set the web Service port to match the port your app listens on. For the static path, set `output: 'export'` and publish the generated `out/` directory.
2. **Add your runtime dependencies.** Set server-only environment variables on the Environment. Link PostgreSQL if the app needs a database. Run any queue consumer as a private worker with its own start command.
3. **Deploy your repository to a staging Environment.** Open the HTTPS URL and run the checks below with staging data before sending real traffic.

## Check your app

For a static export, load a few pages directly and check that assets and browser-side API calls work. For SSR, refresh a page that reads fresh data and confirm the HTML reflects a change. If the app runs scheduled work, let the timer fire and check that the worker completes the job. Redeploy and confirm that the data your app expects to keep is still there. [Worked Next.js migration](/compare/vercel-alternatives/#worked-migration)

[Deploy Next.js on Blossom](/deploy/nodejs-nextjs/)

## Explore more hosting content

### Alternatives

- [6 Vercel Alternatives for Next.js and Full-Stack Apps](/compare/vercel-alternatives/)
- [Heroku, Render, Vercel, Fly.io, and Railway compared](https://blog.boltops.com/2025/05/01/heroku-vs-render-vs-vercel-vs-fly-io-vs-railway-meet-blossom-an-alternative/)

### Head-to-head

- [Vercel vs Blossom](/docs/comparisons/vercel-vs-blossom/)
- [Railway vs Blossom](/docs/comparisons/railway-vs-blossom/)
- [Render vs Blossom](/docs/comparisons/render-vs-blossom/)

### Related reading

- [What Survived a Next.js Redeploy](/blog/what-survived-a-nextjs-redeploy/)

- [View all comparisons](/compare/)
- [Hosting and Deployment Guides](/learn/)
