GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing docs.netlify.com — Server The new Netlify experience is here. Learn more or join the waitlist. ServerNetlify Server gives your application everything a server can do, with none of the work of running one. Netlify provisions it, deploys your code to it, scales it automatically based on demand, and monitors it. When nothing is using it, it scales down to zero, so an app with occasional traffic stays cost-efficient. Because a server is a long-lived process, it can do what a backend usually needs a server for. It handles many requests at once, keeps state between them (such as database connection pools, caches, and SDK clients), and holds WebSocket and Server-Sent Events connections open. It's also fast. A new deploy's server is started before the deploy goes live, which virtually eliminates cold starts when you ship. Your server is fully integrated with the rest of the platform. It can use Netlify Database, Netlify Blobs, the AI Gateway, and the Cache API with no setup, and it's built and deployed alongside the rest of your project, so every deploy, including branch deploys and Deploy PreviewsDeploy PreviewsA type of deploy that lets you preview and share changes for feedback before they go live., runs its own version of your backend. Use casesSection titled “Use cases”
You can use a server for a public site or for an internal tool your team uses. For internal tools, make the project private or turn on team login protection. Your server can then read the signed-in user from How it worksSection titled “How it works”You write your server the way you prefer, either as a handler with the same signature as Netlify Functions, or with a Node.js web framework or server, such as Express, Hono, or Fastify. A project has at most one server, defined in a single entry file at Your handler receives the request's When you need platform features, such as the visitor's geolocation, If your project also has edge functions, redirect rules, static files or functions, these handle requests first, and your server then gets everything else. Refer to Routing for the full order. Netlify runs your server as instances, adding and removing them as traffic changes, down to none when idle. A new production deploy goes live once its instances have started, and the previous ones shut down gracefully. Refer to Lifecycle. CapabilitiesSection titled “Capabilities”
Early AccessSection titled “Early Access”Netlify Server is in Early Access, available on credit-based plans and on Enterprise plans with credits enabled. Its APIs and behavior might change during this period. Some of its functionality is limited during Early Access, and we'll be adding extra functionality over time. While it's in Early Access:
When to use a serverSection titled “When to use a server”A server is built to serve your app's traffic as one long-lived process that handles many requests together, with your routes, middleware, state, startup, and shutdown in one place. In the same project, you can also use:
If you're building a new backend, start with a server. Add functions for standalone tasks that don't need to be part of your app, such as a webhook receiver, a scheduled job, or work triggered by events on Netlify, and edge functions for logic that should run close to your visitors. All three work together in the same project.
Functions can be more cost-effective for a backend that's only used occasionally. A function runs only while it handles a request, while a server's instance keeps running for a while after its last request before it scales to zero. Not sure which fits your project? Answer a few questions: Answer the questions to see how to build your backend. Recommended Start a new backend on Netlify Server. Add functions for standalone tasks, such as webhooks, scheduled jobs, and work triggered by events on Netlify, and edge functions for logic that should run close to your visitors. If your backend is only used occasionally, functions can be more cost-effective. Full-stack frameworksSection titled “Full-stack frameworks”Full-stack frameworks, such as Next.js, Astro, Nuxt, SvelteKit, React Router, and TanStack Start, don't run on Netlify Server yet. Netlify runs their server-side code as functions, through each framework's adapter. These adapters usually handle every path that isn't a static file, so a server in the same project doesn't receive any requests. For now, we recommend that you use a server in projects that don't use one of these frameworks. PricingSection titled “Pricing”Netlify Server is free to use during Early Access. When it reaches General Availability (GA), usage will be charged in credits, based on two meters:
Before GA, we will announce the cost in credits per unit. If your usage during Early Access suggests you’ll need to upgrade your plan or buy more credits, we will let you know. You can see how many instances your server ran, and their memory and CPU use, on its Server page in the Netlify UI. Metered billing for other features in the same project, such as production deploys, bandwidth, and functions, applies as usual. Every request your server handles counts toward the web requests meter. Netlify Server’s limits allow for flexible experimentation while avoiding runaway costs once its usage is billed. For example, every instance stops after 5 minutes without requests. Some limits also differ per plan, such as how many instances a server can scale up to and how long a request can run. If you need higher limits, or you’re concerned about cost once Netlify Server reaches GA, contact us. Acceptable useSection titled “Acceptable use”During Early Access, Netlify Server is meant for evaluation, experimentation, and low-volume production use. Our Acceptable Use Policy applies, so a server should only run workloads related to your site or app that is on Netlify. We may limit accounts with sustained heavy use of server instances, and in some cases block accounts that violate the Acceptable Use Policy. Learn moreSection titled “Learn more”
Did you find this doc useful?Your feedback helps us improve our docs. | ||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |