---
title: "Node.js Compatibility Entrypoint"
description: "Learn how the nodejs_compat entrypoint unlocks additional Node.js SDK features on Cloudflare Workers, such as Prisma instrumentation."
url: https://docs.sentry.io/platforms/javascript/guides/cloudflare/features/nodejs-compat/
---

# Node.js Compatibility Entrypoint | Sentry for Cloudflare

Cloudflare Workers can run with Node.js APIs enabled through the [`nodejs_compat` compatibility flag](https://developers.cloudflare.com/workers/runtime-apis/nodejs/). To take advantage of this, the Cloudflare SDK ships a dedicated `@sentry/cloudflare/nodejs_compat` entrypoint that unlocks Node.js SDK features which aren't available in the default Workers runtime.

The `@sentry/cloudflare/nodejs_compat` entrypoint requires SDK version `10.64.0` or higher. It will become the default entrypoint in the next major version (v11).

## [What It Unlocks](https://docs.sentry.io/platforms/javascript/guides/cloudflare/features/nodejs-compat.md#what-it-unlocks)

The `/nodejs_compat` entrypoint enables Node.js-only integrations and features on Cloudflare, including:

* The [`prismaIntegration`](https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/integrations/prisma.md) for tracing Prisma ORM queries.
* Vercel AI SDK v7 support for the [`vercelAIIntegration`](https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/integrations/vercelai.md).

## [Usage](https://docs.sentry.io/platforms/javascript/guides/cloudflare/features/nodejs-compat.md#usage)

The entrypoint is a drop-in replacement for `@sentry/cloudflare`, so switching over only requires changing your imports:

```javascript
import * as Sentry from "@sentry/cloudflare/nodejs_compat";
```

*Other available variations of the above snippet: Before*

To use the entrypoint, your Worker must set the `nodejs_compat` compatibility flag in your Wrangler configuration:

```jsonc
{
  "compatibility_flags": ["nodejs_compat"],
}
```

*Other available variations of the above snippet: Toml*
