Hosted in the UK, on servers we own and run ourselves.

Next.js hosting in the UK, deployed from Git

Connect your repository and we build and run your Next.js app. Every push to your branch redeploys it. Server rendering, API routes and middleware work as they do on your own machine.

Every push to your branch redeploys automatically
Environment variables set per site in the dashboard
Managed PostgreSQL from £6 a month
Free address at yourapp.apps.g7cloud.com, or your own domain with free SSL
Node 18, 20 or 22, chosen per app
deploy · next.js
$ git push origin main
✓ Framework detected: Next.js
✓ Node 20 · npm run build
✓ NEXT_PUBLIC_ values read from your settings
✓ Started with next start
✓ SSL issued · ScaleShield active
✓ Live at https://yourapp.apps.g7cloud.com

How it works, in four steps

Your Next.js app runs in its own container (an isolated space on our servers with its own memory).

  1. 1

    Connect your repository

    Pick a GitHub, GitLab or Bitbucket repository and the branch to deploy. You can use a sub-folder for a monorepo.

  2. 2

    We build and deploy it

    We detect Next.js, install your dependencies, run your build script and start the app with next start. You watch the build log live in the dashboard.

  3. 3

    Every push redeploys

    Push to that branch and the new version goes live. Deploys queue one at a time per site, and the newest push wins. You can also deploy any earlier commit.

  4. 4

    Live on your address

    Your Next.js app runs at yourapp.apps.g7cloud.com, or on your own domain, with a free SSL certificate either way.

Environment variables, set in the dashboard

Environment variables are the settings and secrets your app reads, such as API keys and database addresses. They live with your site, not in your repository.

  • Set them for each site in the dashboard, one key at a time. Saving one key never removes the others.
  • Your app reads them while it runs, and our build reads them too, so values your framework needs at build time are there.
  • Next.js copies NEXT_PUBLIC_ values into the build. After you change one, choose Save & Redeploy so a fresh build picks it up.
  • Attach a managed database to the site, type DATABASE_URL (or REDIS_URL, or CLICKHOUSE_URL) and the dashboard offers the connection string, so you never copy a password by hand.
  • Building from your own Dockerfile? Your variables reach the running app. Values the build needs go in the Build args field.
Environment variables · yourapp
DATABASE_URLpostgresql://••••••
STRIPE_SECRET_KEY••••••••••••
NEXT_PUBLIC_SITE_URLhttps://example.co.uk
Save · Save & Redeploy

The whole of Next.js works

Your app is a normal Node process that keeps running between requests, so there is no adapter deciding which features you get.

Server rendering and ISR

Pages render on the server and revalidate on a timer or on demand, as the Next.js docs describe.

API routes and middleware

Route handlers, middleware and server actions run in your own process. Image optimisation runs there too, at no extra cost.

Terminal, logs and cron

Open a terminal on your running app from the dashboard, read its logs and schedule cron jobs.

Pull-request previews

Each pull request gets its own preview copy on Pro, Studio, Agency, Solo Plus, and Solo HA.

Same platform as all our app hosting. See also Node.js hosting, managed PostgreSQL and G7Cloud and Vercel compared.

What it costs: a plan from £12 a month, plus any databases you add

Git deploys come with every paid plan, starting with Starter. Prices are fixed in pounds, and the price you sign up at is the price you renew at. Annual billing: save 20%.

An app on Starter (£12) with a 1 GB PostgreSQL database (£6) costs £18 a month.

PlanSitesMemory per sitePull-request previewsPrivate networkPrice a month
Starter11 GBNot includedNot included£12
Business31 GBNot includedNot included£24
Pro102 GBIncludedIncluded£59
Studio152 GBIncludedIncluded£99
Agency253 GBIncludedIncluded£179
Solo14 GBNot includedNot included£29
Solo Plus18 GBIncludedNot included£59
Solo HA18 GBIncludedNot included£99

Managed databases

  • PostgreSQL 15, Redis 7 and ClickHouse, added to any paid plan at the same price on every plan.
  • Each database is charged by its memory: £6 per GB a month, in whole GB, 1 GB the smallest. Its processing power grows with its memory.
  • 1 GB: £6 a month · 4 GB: £24 a month. Two databases cost twice one.
  • A standby copy that takes over automatically (PostgreSQL and Redis) doubles the price: 4 GB with a standby is £48 a month. Your connection string stays the same.
How managed databases work

Which plan you need

  • One app on your own domain: Starter, £12 a month.
  • A preview copy of your app for every pull request: Pro, Studio, Agency, Solo Plus, and Solo HA, from £59 a month.
  • A private network between your apps, databases and laptop: Pro, Studio, and Agency, from £59 a month.
  • Every paid plan has a 30-day money-back guarantee.
Compare every plan on the pricing page

Limits to know before you start

  • A git app keeps no files between deploys. Each deploy starts from a fresh build, so store uploads and anything your app saves in a database. We do not offer a separate file storage service.
  • Memory per site is a hard limit set by your plan. If your app needs more, move up a plan or add memory to that site at £6 per GB a month.
  • Managed PostgreSQL runs version 15. Moving data from a newer server (16 or 17) needs testing first.
  • Pull-request previews work with GitHub repositories. GitLab and Bitbucket repositories deploy on every push.

Next.js hosting FAQ

Does server-side rendering work, or only static export?

Server-side rendering works. Your app runs next start in its own container, so server rendering, API routes, middleware, server actions and ISR revalidation behave as they do on your own machine. A static export works too.

How is my Next.js app built?

We detect Next.js from your package.json, install your dependencies, run your build script and start the app with npm start. You choose Node 18, 20 or 22, and you can override the build and start commands. If you prefer, deploy from your own Dockerfile instead.

Do NEXT_PUBLIC_ environment variables work?

Yes. The variables you save for the site are passed to the build as well as to the running app, so NEXT_PUBLIC_ values are copied into your pages at build time. Because they are fixed at build time, change one and choose Save & Redeploy so a fresh build picks it up.

How much does a PostgreSQL database cost?

You can add managed PostgreSQL, Redis and ClickHouse databases to any paid plan. Each database is charged by its memory: £6 per GB a month, with 1 GB the smallest size, so a 1 GB database is £6 a month and a 4 GB one is £24. Its processing power grows with its memory. A standby copy that takes over automatically if the main one fails (PostgreSQL and Redis only) doubles the price.

Can my app store uploaded files?

Not on its own disk. A git app keeps no files between deploys, so store uploads in your database or with a file storage service you choose. We do not offer a separate file storage service.

Do I get a preview for each pull request?

On Pro, Studio, Agency, Solo Plus, and Solo HA (from £59 a month), each pull request on a GitHub repository builds into its own preview copy with its own address. Idle previews sleep and wake on the next visit, and the preview is removed when the pull request closes.

Where is my app hosted?

Your site, its database, email, DNS and nightly backups are hosted on our own servers in a UK data centre, run by our UK team. The one copy held outside the UK is a monthly disaster-recovery copy of backups, stored with Cloudflare in the EU. Card payments go through Stripe, and AI features send your prompt to an AI provider outside the UK; both are listed on our sub-processor page.

Put your Next.js app live from a git push

Plans from £12 a month, fixed, and managed PostgreSQL from £6 a month. Every paid plan has a 30-day money-back guarantee. Hosted in the UK, on servers we own and run ourselves.