Netlify Server (Early Access, November 2026): run an Express, Hono or Fastify backend and WebSockets on Netlify

On 10 November 2026 Netlify launched Netlify Server in Early Access. Until now an Express API or a WebSocket chat couldn't run on Netlify as a normal server: Netlify Functions handle one request per instance and stop when they respond. Netlify Server keeps a Node.js process running between requests, which changes the answer to “can I host my backend on Netlify?” — with some Early Access limits you should know first.

Short answer

Yes, you can now run an Express, Hono, Fastify or Koa backend on Netlify as-is by putting it in netlify/server/index.ts (or .js/.mjs/.mts). It is in Early Access, free to use for now, and available on Netlify's credit-based plans (and Enterprise with credits). Each project gets one server; it scales up to 3 instances on Pro and Enterprise, or 1 on Free and Personal, and always scales to zero after 5 minutes without requests, so the next request waits for a cold start. WebSockets and Server-Sent Events work, but connections are closed after 30 minutes (2 hours on Pro and up), so clients must reconnect. Local disk and memory are lost when an instance stops. Next.js, Astro and Nuxt don't run on Netlify Server yet. After Early Access it will be billed in credits for reserved memory and active CPU; Netlify hasn't published those prices yet.

What changed

Netlify Server runs your app's backend as a long-lived Node.js server that Netlify provisions, scales with demand and scales to zero when nothing uses it. Netlify's changelog lists what that allows compared with Functions:

  • One instance handles many requests at once.
  • Database connection pools and in-memory caches stay warm between requests.
  • WebSocket and Server-Sent Events connections stay open, for live chat or real-time collaboration.
  • An existing Express, Hono, Fastify or Koa app runs as-is, without an adapter.
  • Every deploy, including branch deploys and Deploy Previews, runs its own copy of the server, and rolling back a deploy rolls back its server.

For vibe coders this matters when an AI tool generated a separate Node backend (a server.js with Express, a WebSocket server, a bot webhook). Before, the usual advice was to put that part on Railway, Render or Fly.io and keep only the frontend on Netlify.

Who can use it and what it costs

Netlify Server is available on credit-based plans and on Enterprise plans with credits enabled. It is free to use during Early Access. At General Availability it will be charged in credits on two meters: reserved memory (GB-hours) and active CPU time (vCPU-hours). Netlify says it will announce the credit cost before then; as of 11 November 2026 it hasn't.

Netlify Server Early Access limits by plan (Netlify Server docs, checked 11 Nov 2026)
LimitFree and PersonalPro and Enterprise
Instances at once 1 Up to 3
Instance sizes small only (1 GB RAM, 1 shared vCPU, 512 MB disk) small, medium (2 GB, 1 vCPU) or large (4 GB, 2 vCPU)
Longest request (incl. WebSocket/SSE) 30 minutes 2 hours (also Business)
Scale to zero Always, after 5 minutes without requests Always, after 5 minutes without requests (min must be 0 during Early Access)
Server price during Early Access Free Free

Other metered usage in the project is billed as usual, and every request your server handles counts toward the web requests meter. Netlify says it will tell you if your Early Access usage suggests you'll need a bigger plan or more credits.

Set it up

  • Use Node.js 24 or later for the build; the server runs on the same major version and the deploy fails on an older one.
  • Install the types package: npm install @netlify/server (plus your framework, for example express).
  • Put the server in netlify/server/index.ts (or index.mts, index.js, index.mjs). One server per project; the build fails if there are two entry files.
  • Express or Fastify: start it the usual way, listening on process.env.PORT. Hono or any app with a fetch method: export default app. No ports, health checks or adapters to configure.
  • Need WebSockets with Express? Wrap the app in http.createServer(app) and export the server without calling listen(). If you export a bare Express app, Netlify answers WebSocket requests with a 501.
  • Run it locally with netlify dev and deploy as usual (Git push or netlify deploy), using Netlify CLI 27.17.0 or later.
  • Environment variables reach the server only if their scope includes Functions, and their values are fixed at deploy time, so redeploy after changing one.
netlify/server/index.js (Express, from Netlify's get-started guide, simplified)
import express from "express";

const app = express();

app.get("/api/hello", (req, res) => {
  res.json({ message: "Hello from Netlify Server" });
});

app.listen(process.env.PORT || 3000);

Gotchas for AI-generated apps

  • The SPA fallback rule /* /index.html 200 (common in Lovable and Bolt exports) catches every path before your server sees it. Limit it to the paths your frontend handles, or set the server's path to something like /api/*. By default the server gets every request nothing else handles; static files always win.
  • Local disk and in-memory data are lost when an instance stops (after 5 idle minutes, a new deploy, or 8 hours of running). Don't keep a SQLite file or uploads on disk; use a hosted database, Netlify Database or Netlify Blobs.
  • Cold starts: the first request after idling waits for the server to start, and the server must send its response headers within 20 seconds of the request arriving, or it gets a 502.
  • Outbound connections (database, APIs) are closed after 60 seconds with no data. Set your connection pool's idle timeout below 60 seconds.
  • WebSocket and SSE connections are closed at the request duration limit (30 minutes, or 2 hours on Pro and up). Make the client reconnect.
  • When every instance is full, new requests briefly wait and then get 429 Too Many Requests. A small instance handles 32 requests at once.
  • setInterval timers don't keep an instance alive. For work after the response, use waitUntil; for scheduled jobs, use something else (Netlify scheduled functions or another host).

Netlify Server or an always-on host?

The left column is what Netlify documents for Early Access. Railway and Render run your server as an ordinary always-on process (see our host pages for their current prices).

When Netlify Server fits, and when a classic server host is the safer choice
Your backendNetlify Server (Early Access)Always-on host (Railway, Render, Fly.io)
Express/Hono API next to a Netlify frontend Good fit: same project, same deploy previews Works, but a second service and domain (and CORS) to manage
Low-traffic app, cost matters Free during Early Access; scales to zero Billed by each host's own pricing while it runs
Chat or live updates over WebSockets Works; clients must reconnect at the duration limit Works as a normal long-running process
Next.js, Astro or Nuxt server Not supported yet; use Netlify's normal framework support Runs as a Node server
Cron jobs, queues, bots that must never sleep No: always scales to zero, timers don't keep it awake Yes
Production app with predictable bills GA pricing not published yet Published pricing

Our take: if your frontend is already on Netlify and the backend is a small Express or Hono API, Netlify Server removes the second host. For anything that must run 24/7, or where you need to know next year's bill today, keep an always-on server until Netlify publishes GA pricing.

Confirmed vs not confirmed

What Netlify has confirmed about Netlify Server vs what isn't published yet
ClaimStatusSource
Launched in Early Access on 10 November 2026 Confirmed Netlify changelog
Free to use during Early Access; GA billing on reserved memory and active CPU in credits Confirmed Netlify changelog; Netlify Server docs
Credit cost per GB-hour / vCPU-hour at GA Not published Netlify says it will announce it before GA
GA date Not published Not in the changelog or docs as of 11 Nov 2026
1 instance on Free/Personal, up to 3 on Pro/Enterprise; scale to zero after 5 idle minutes Confirmed Netlify Server docs: Limits
Next.js, Astro and Nuxt don't run on Netlify Server yet Confirmed Netlify changelog
Regions: US East (Ohio) by default, EU (Frankfurt) optional Confirmed Netlify Server docs: Configuration
Keeping a minimum number of instances running Announced for after Early Access, no date Netlify changelog

Common questions

Can I run an Express server on Netlify?

Yes, since 10 November 2026 with Netlify Server (Early Access). Put the app in netlify/server/index.js or index.ts and start it on process.env.PORT. It needs a credit-based Netlify plan and Node.js 24 or later.

Does Netlify support WebSockets now?

Yes, through Netlify Server. Export a Node.js HTTP server (for Express, wrap the app in http.createServer). Connections close after 30 minutes, or 2 hours on Pro and up, so the client must reconnect.

How much does Netlify Server cost?

It is free during Early Access. At General Availability it will be billed in credits for reserved memory (GB-hours) and active CPU (vCPU-hours); Netlify hasn't published the credit cost yet. Requests still count toward the web requests meter.

Can I use Netlify Server on the free plan?

Yes, on the credit-based Free plan, with one small instance at a time. Pro and Enterprise can scale to 3 instances and use bigger sizes.

Does my server stay on all the time?

No. During Early Access every instance stops after 5 minutes without requests, and the next request waits for a cold start. Netlify says keeping a minimum number of instances running will come after Early Access.

Can I run Next.js or Astro on Netlify Server?

Not yet. Netlify says full-stack frameworks such as Next.js, Astro and Nuxt don't run on Netlify Server yet; keep using Netlify's normal framework support for them.

Why does my server get no requests?

Usually a catch-all rewrite such as /* /index.html 200 sends every path to your frontend first. Narrow that rule, or give the server a path such as /api/*.

Related on VibeLiftoff