Skip to main content

Deploying a Mastra Server

Build your application and start the generated HTTP server:

mastra build
node .mastra/output/index.mjs

To include telemetry for the generated server:

node --import=./.mastra/output/instrumentation.mjs .mastra/output/index.mjs