Hosting

Hosting a Next.js app in the EU without Vercel

Where eight providers, Vercel among them, run your code in the EU, what their data processing terms say, and how to run Next.js on an EU server with fonts, images and access logs kept on it. Not legal advice.

TL;DR

  • Every provider compared here can run your Next.js (opens in a new tab) code in the EU, but defaults differ: Vercel (opens in a new tab) runs functions in Washington, D.C. and Netlify in Ohio until you change it, and Cloudflare (opens in a new tab) runs Workers wherever the visitor is.
  • Running code in an EU region is not the whole picture: Vercel, Render (opens in a new tab) and Railway (opens in a new tab) say their primary processing is in the United States, and Fly.io processes snapshots, logs, metrics and builds in the US whatever region you pick.
  • The most contained setup is Next.js on a server in an EU location (for example Hetzner (opens in a new tab) in Germany or Finland), with the database, image optimisation, fonts and logs on the same server.
  • This article lists what providers say; it is not legal advice. Whether your setup meets the GDPR is for you, and your lawyer or data protection officer, to decide.
On this page

To host a Next.js app in the EU, choose a provider location inside the EU, run Next.js there (as a Node.js (opens in a new tab) server on an EU server, or on a platform's EU region), and then check where everything around the app goes: the database, backups, logs, builds and the services your app calls. Every provider here can run your code in the EU; when you look for a Vercel alternative in Europe, compare their defaults and what they say about processing outside the EU.

This article is part of our guide to moving off Vercel, Heroku, Render or Railway. It sets out what each provider says on its own pages, read on 11 November 2026, and makes no claim that any setup is GDPR compliant: that depends on your data, your contracts and your obligations, and is for you and your lawyer or data protection officer to judge.

What "hosting in the EU" involves

"Our servers are in Frankfurt" answers only the first of five questions:

  1. Where your code runs: the region of your functions, containers or server.
  2. Where your data is stored: the database, uploaded files and backups.
  3. Where the platform's own data goes: request logs, metrics, build logs and images, and the control plane that manages your app. These can sit outside the region your app runs in.
  4. What the contract says: whether a data processing agreement (DPA) applies to your plan, how it is concluded, which subprocessors the provider uses, and which transfer mechanism covers data leaving the EU (the EU-US Data Privacy Framework, Standard Contractual Clauses).
  5. Who else your app sends data to: a hosted database in another region, an email service, analytics, error tracking, a CDN in front, fonts or scripts loaded from other domains.

Your privacy policy should describe what the setup really does.

Vercel and its alternatives in Europe: what each provider says

EU locations, defaults and data processing terms, from each provider's own pages on 11 November 2026
ProviderEU locations for your codeDefaultData processing agreementProcessing outside the EU, in its own documents
VercelFrankfurt, Paris, Dublin, Stockholm (London is in the UK)Washington, D.C. (iad1) for functionsApplies to Pro and Enterprise plans; EU Standard Contractual Clauses"Vercel's primary processing facilities are in the United States"
NetlifyFunctions in Frankfurt or Dublin (Pro and Enterprise), Paris or Milan through supportOhio (cmh) for functions"Incorporated by reference" in its termsNot stated on its GDPR page
Cloudflare WorkersRuns in the data centre closest to each requestGlobalApplies from when you sign or otherwise agree to it; Cloudflare states it complies with the Data Privacy FrameworkPlacement options aim at latency, not location; the Data Localization Suite is an "Enterprise-only paid add-on"
RenderFrankfurtChosen when you create a service; cannot be changed laterSupplements its terms of service; Data Privacy Framework, then SCCs"primary processing operations take place in the United States"
RailwayAmsterdamYour preferred region in account settingsSigned through a DocuSign form"primary processing operations take place in the United States"
Fly.ioAmsterdam, Frankfurt, Paris, Stockholm (London is in the UK)The region you deploy toSelf-service on every plan, pre-signed by Fly.io and binding once you return your signed copy; Fly.io is certified under the Data Privacy FrameworkVolume snapshots, the control plane, platform logs, metrics, proxy traces and image builds "are processed in the United States regardless of region"; Managed Postgres backups stay in the cluster's geographic area
DigitalOcean (opens in a new tab) App PlatformAmsterdam, Frankfurt (London is in the UK)The region you chooseAn addendum to its terms of serviceTransfers out of the EEA rely on its Data Privacy Framework certification, with SCCs as the fallback
Hetzner CloudFalkenstein and Nuremberg (Germany), Helsinki (Finland)The location you chooseConcluded in your Hetzner account by ticking "I agree to the agreement"Cloud data's location "depends on the product location you have chosen"; Hetzner also runs locations in the US and Singapore in third-party data centres

Two things in that table are easy to miss:

  • A front-end cloud's CDN is global. Vercel says it caches static content in its CDN by default and serves it from the region closest to each user; its network has 126 points of presence. Pinning functions to Frankfurt does not change that. Cloudflare's Workers likewise run "in a data center closest to where the request was received" unless you set a placement hint, and its placement docs describe every option, including a hint to run near a cloud region, in terms of latency, not data location.
  • The region you pick is not everything a platform processes. Fly.io is the clearest about it: your app's content, memory and volumes stay in the regions you deploy to, while snapshots, logs, metrics and builds are processed in the US. Heroku (opens in a new tab), for comparison, says choosing a region "does not guarantee restriction of data residency" for its products and add-ons.

Option 1: Next.js on a server in an EU location

One server in an EU location, at an EU provider or in an EU region of another, runs the Next.js app, its database and the reverse proxy, with nothing in front. The tested setup (standalone output, a Dockerfile, PostgreSQL (opens in a new tab) and Caddy (opens in a new tab) with Docker (opens in a new tab) Compose) is in Deploy Next.js to a VPS with Docker and HTTPS. For the EU, add these.

Pick the location, and conclude the DPA

At Hetzner, pick Falkenstein, Nuremberg or Helsinki; Ashburn, Hillsboro and Singapore are outside the EU. Then conclude the data processing agreement in your Hetzner account. Other providers have their own process; Hetzner vs DigitalOcean compares two of them for a small app.

Keep images and fonts on your server

  • Images. Next.js's self-hosting guide says next/image optimisation "works self-hosted with zero configuration" with next start, so images are resized on your server rather than by an image service.
  • Fonts. Next.js's docs say Google Fonts loaded through next/font are "included as static assets and served from the same domain as your deployment, meaning no requests are sent to Google by the browser". We checked it: a fresh Next.js 16.4.6 app from create-next-app, whose layout loads its fonts from next/font/google, built on 11 November 2026 into a home page that referenced only font files under /_next/static/media/ and contained no Google font address. The fonts are downloaded once, at build time, by the machine that builds.

Fonts or scripts you add with a plain <link> or <script> tag to another domain are a different matter: the browser fetches them from there.

Decide what your access logs keep

On a server, request logs come from the reverse proxy in front of Next.js. Caddy's log directive "enables and configures HTTP request logging": without it a site has no access log (our stacks without it logged no requests), and with it, from version 2.7, Caddy logs both remote_ip and client_ip. Its ip_mask filter shortens them. This Caddyfile keeps the first 16 bits of IPv4 addresses and 32 bits of IPv6 addresses, and drops any X-Forwarded-For header from the log:

example.com {
	encode zstd gzip
	log {
		format filter {
			request>remote_ip ip_mask 16 32
			request>client_ip ip_mask 16 32
			request>headers>X-Forwarded-For delete
		}
	}
	reverse_proxy app:3000
}

We validated it with caddy validate on Caddy 2.11.9 and sent a request through it: the access log showed 172.17.0.0 for both addresses and no X-Forwarded-For. Whether to keep logs at all, how long and with which fields is for you and your data protection adviser to decide; Caddy's docs list the fields and filters.

Keep the data and the backups in the EU

Run the database on the same server or a server of yours in the same location, with no public port, and send backups to storage in an EU location too. If you later put a CDN or a proxy service in front of the server, it sees every request, so read its terms too.

Option 2: a platform with an EU region

On a platform, pin everything you can to the EU:

  • Vercel: set the functions region to fra1, cdg1, dub1 or arn1 in the project's Functions settings or in vercel.json:

    {
      "regions": ["fra1"]
    }

    Hobby allows one region, and its DPA covers Pro and Enterprise only.

  • Netlify: choose Frankfurt or Dublin in the project's Functions settings (Pro and Enterprise), then redeploy; old deploys keep their old region.

  • Render: create the services and the database in Frankfurt; a region cannot be changed later.

  • Railway: choose Amsterdam (EU West) in the service settings; a service can change region later, with downtime while a volume moves.

  • Fly.io: deploy to ams, fra, cdg or arn, keeping in mind what it processes in the US.

  • DigitalOcean App Platform: create the app in Amsterdam or Frankfurt.

Then put the database in the same EU region, at the platform or at a database provider with an EU region. A Frankfurt function talking to a database in Virginia sends every query across the Atlantic.

Doing this with OpsCrew

OpsCrew, the open-source deploy tool we build, takes the server route. Its interview asks for your region and budget, and it proposes servers at Hetzner Cloud or DigitalOcean there, with their monthly price, before anything is created; it can also deploy to a server you already have, at any provider and in any location. It makes the changes a Next.js app needs to run in a container, runs the database next to the app with no public port (databases), and puts Caddy or nginx (opens in a new tab) in front (the reverse proxy). One limit to know: its Cloudflare hosting for sites without a server runs on Cloudflare's global network, so it is not the option for keeping processing inside the EU.

Where to go next

For the other ways to leave Vercel, see Vercel alternatives; for apps with workers and a database, Heroku alternatives prices the platforms with EU regions. The whole migration is in moving off Vercel, Heroku, Render or Railway.

Key facts

FactValueSource
Vercel default function regioniad1, Washington, D.C., USAEU compute regions: fra1 (Frankfurt), cdg1 (Paris), dub1 (Dublin), arn1 (Stockholm). Hobby runs functions in one region.Vercel, configuring regions for functions (opens in a new tab)Verified on
Netlify default function regioncmh, US East (Ohio)Frankfurt and Dublin self-serve on Pro and Enterprise; Paris and Milan through support.Netlify, configuration for functions (opens in a new tab)Verified on
Fly.io data processed in the US regardless of regionVolume snapshots, the control plane, platform logs, metrics, proxy traces and image buildsFly.io security and compliance questionnaire (opens in a new tab)Verified on
Cloudflare Data Localization SuiteEnterprise-only paid add-onCloudflare Data Localization Suite (opens in a new tab)Verified on
Hetzner Cloud EU locationsFalkenstein and Nuremberg (Germany), Helsinki (Finland)Hetzner Docs, locations (opens in a new tab)Verified on

Frequently asked questions

Is Vercel GDPR compliant?

We cannot answer that for you, and no provider's page can either: compliance depends on your whole setup. Vercel states that its data processing addendum applies to customers on Pro and Enterprise plans, that its primary processing facilities are in the United States, and that EU transfers use the EU Standard Contractual Clauses; you can run functions in Frankfurt, Paris, Dublin or Stockholm. Ask your lawyer or data protection officer whether that fits your obligations.

What is a European alternative to Vercel?

For Next.js, a server at an EU provider such as Hetzner (Germany and Finland) running the app with Docker is the most contained option. Among platforms, Render (Frankfurt), Railway (Amsterdam), Fly.io (Amsterdam, Frankfurt, Paris, Stockholm) and DigitalOcean App Platform (Amsterdam, Frankfurt) can run the app in the EU, but they are US-based, and their own documents describe processing in or transfers to the United States.

Sources

  1. Global network and regions (opens in a new tab), Vercel, accessed on
  2. Configuring regions for Vercel Functions (opens in a new tab), Vercel, accessed on
  3. Vercel data processing addendum (opens in a new tab), Vercel, accessed on
  4. Netlify, configuration for functions (opens in a new tab), Netlify, accessed on
  5. Netlify GDPR and CCPA (opens in a new tab), Netlify, accessed on
  6. Workers placement (opens in a new tab), Cloudflare, accessed on
  7. Data Localization Suite (opens in a new tab), Cloudflare, accessed on
  8. Cloudflare customer DPA (opens in a new tab), Cloudflare, accessed on
  9. Render regions (opens in a new tab), Render, accessed on
  10. Render data processing addendum (opens in a new tab), Render, accessed on
  11. Railway deployment regions (opens in a new tab), Railway, accessed on
  12. Railway data processing agreement (opens in a new tab), Railway, accessed on
  13. Fly.io regions (opens in a new tab), Fly.io, accessed on
  14. Fly.io security and compliance questionnaire (opens in a new tab), Fly.io, accessed on
  15. Heroku regions (opens in a new tab), Heroku, accessed on
  16. App Platform availability (opens in a new tab), DigitalOcean, accessed on
  17. DigitalOcean data processing agreement (opens in a new tab), DigitalOcean, accessed on
  18. Hetzner Cloud locations (opens in a new tab), Hetzner, accessed on
  19. Data protection at Hetzner (opens in a new tab), Hetzner, accessed on
  20. Font optimization (opens in a new tab), Vercel (Next.js), accessed on
  21. How to self-host your Next.js application (opens in a new tab), Vercel (Next.js), accessed on
  22. log directive (opens in a new tab), Caddy, accessed on
Edit this article
  • Deploying

    Deploy a v0 app without Vercel

    How to deploy a v0 app on a server you control instead of Vercel: export it to GitHub, recover the environment variables, build a standalone Next.js image and serve it over HTTPS.

    8 min read

  • Deploying

    Deploy Next.js to a VPS with Docker and HTTPS

    A tested setup for Next.js 16 on your own server: standalone output, a small multi-stage Docker image, PostgreSQL and Caddy with automatic HTTPS, and the build-time traps that break apps after the first deploy.

    8 min read

  • Deploying

    How to deploy a web app to a VPS: the complete guide

    From an empty server to a production app: server size, Docker, a reverse proxy with HTTPS, DNS, CI/CD, secrets, backups, zero-downtime updates, previews, logs and hardening.

    13 min read

Put OpsCrew to work on your app.

Run npx opscrew init in your app's repository. It checks your tools and tokens first, for free.