> ## Documentation Index
> Fetch the complete documentation index at: https://docs.belvedir.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying Fractal-Instrumented Next.js Apps on Vercel

> Configure the Node.js runtime and set your environment variables on Vercel so Fractal SDK traces are captured correctly in production.

The Belvedir SDK relies on OpenTelemetry, which requires the Node.js runtime. On Vercel, routes can default to the Edge runtime where the SDK silently skips initialization. Add the following to any API route that makes LLM calls:

```ts theme={null}
export const runtime = 'nodejs'
```

Set `FRACTAL_API_KEY` in your Vercel project's environment variables, then redeploy. See [Environment Variables](/guides/environment-variables) for the full list.
