@sentry/remix
Version:
Official Sentry SDK for Remix
33 lines • 1.08 kB
TypeScript
import type { Plugin } from 'vite';
import type { SentryRemixVitePluginOptions } from './types';
export type { SentryRemixVitePluginOptions };
/**
* Sentry Vite plugins for Remix.
*
* Add these to your Vite configuration to
* - inject the Remix route manifest, so client-side transactions are parameterized,
* - build-time instrument supported server-side dependencies (such as database clients), and
* - inject debug IDs and upload source maps to Sentry.
*
* @example
* ```typescript
* // vite.config.ts
* import { vitePlugin as remix } from '@remix-run/dev';
* import { sentryRemixVitePlugin } from '@sentry/remix/vite';
* import { defineConfig } from 'vite';
*
* export default defineConfig({
* plugins: [
* remix(),
* sentryRemixVitePlugin({
* appDirPath: './app',
* org: 'your-org',
* project: 'your-project',
* authToken: process.env.SENTRY_AUTH_TOKEN,
* }),
* ],
* });
* ```
*/
export declare function sentryRemixVitePlugin(options?: SentryRemixVitePluginOptions): Plugin[];
//# sourceMappingURL=index.d.ts.map