Overview

How Vercube’s default build relates to production and development, and where to deploy.

The same Vercube codebase can be shipped to different hosts (Vercel, AWS Lambda, Azure Functions, and so on). Each guide in this section shows the small amount of wiring that host needs-extra files, env vars, or the @vercube/serverless adapters-so you are not maintaining separate applications per provider.

How routing and configuration work in your app is covered in Core features. Adapter internals for Lambda and Azure are in Serverless.

Default output

The default production output is a Node.js bundle: run vercube build and you get ESM under dist/index.mjs by default (see Configuration for build.entry and build.output).

When you run vercube dev, the CLI uses a development pipeline that stays as close as practical to that production bundle-same decorators, same request path through your app-so behavior in development and after build does not drift unnecessarily.

Choose a platform

PlatformHow Vercube runs thereGuide
VercelNode.js function with a Web fetch handler (no @vercube/serverless)Deploy to Vercel
AWS LambdaAPI Gateway event → Request via @vercube/serverless/aws-lambdaAWS Lambda
Azure FunctionsHTTP trigger → Request via @vercube/serverless/azure-functionsAzure Functions
AWS and Azure guides assume @vercube/serverless. For how adapters map events to Request / Response, see the Serverless module overview.
Previous

Vercel

Deploy a Vercube application to Vercel using Node.js serverless functions and the Web Fetch handler.

Next