Skip to main content
All recipes

Nuxt

CodeNitro pluginVue

Initialize the SDK from a Nitro server plugin to measure supported outbound fetch calls. Verify capture with your HTTP client before relying on the measurements.

1. Install

Bash
npm install @checkupstream/sdk

2. Add the Nitro plugin

server/plugins/checkupstream.ts
import { defineCheckUpstreamPlugin } from "@checkupstream/sdk/integrations/nuxt";

const sdkKey = process.env.CHECKUPSTREAM_SDK_KEY;
if (!sdkKey) throw new Error("Set CHECKUPSTREAM_SDK_KEY before starting the app");

export default defineCheckUpstreamPlugin({
  sdkKey,
});

Continue your setup

Check runtime availability and credentials before deploying an integration.