Overview

Server code that runs when a request arrives.

Push a Next.js, Nuxt, SvelteKit, Astro or Nitro app and the server side runs as functions. You do not manage servers.

  • Frameworks. Next.js (including ISR and after()), Nuxt, SvelteKit, Astro and Nitro deploy as functions with no extra configuration.
  • Contained by default. Each function runs in a container with limits on memory, concurrency and time.
  • Metrics. Invocations, errors, timeouts, cold starts, duration and peak memory for every function, under Observability.
  • Runtime logs. Read what a deployment prints while it runs.

Cold starts

When no instance is running, the first request starts a container. You can see how often that happens in the function metrics.

Reading runtime logs

vtx logs --runtime <deployment-id>

or open the project and choose Runtime Logs.