import { addTracingExtensions, applySdkMetadata } from '@sentry/core'; export { Span, Transaction } from '@sentry/core'; import { getDefaultIntegrations, init as init$1 } from '@sentry/vercel-edge'; export * from '@sentry/vercel-edge'; import { isBuild } from '../common/utils/isBuild.js'; import { rewriteFramesIntegration } from './rewriteFramesIntegration.js'; export { rewriteFramesIntegration } from './rewriteFramesIntegration.js'; export { withSentryGetStaticProps, wrapGetStaticPropsWithSentry } from '../common/wrapGetStaticPropsWithSentry.js'; export { withSentryServerSideGetInitialProps, wrapGetInitialPropsWithSentry } from '../common/wrapGetInitialPropsWithSentry.js'; export { withSentryServerSideAppGetInitialProps, wrapAppGetInitialPropsWithSentry } from '../common/wrapAppGetInitialPropsWithSentry.js'; export { withSentryServerSideDocumentGetInitialProps, wrapDocumentGetInitialPropsWithSentry } from '../common/wrapDocumentGetInitialPropsWithSentry.js'; export { withSentryServerSideErrorGetInitialProps, wrapErrorGetInitialPropsWithSentry } from '../common/wrapErrorGetInitialPropsWithSentry.js'; export { withSentryGetServerSideProps, wrapGetServerSidePropsWithSentry } from '../common/wrapGetServerSidePropsWithSentry.js'; export { wrapServerComponentWithSentry } from '../common/wrapServerComponentWithSentry.js'; export { wrapRouteHandlerWithSentry } from '../common/wrapRouteHandlerWithSentry.js'; export { wrapApiHandlerWithSentryVercelCrons } from '../common/wrapApiHandlerWithSentryVercelCrons.js'; export { wrapMiddlewareWithSentry } from '../common/wrapMiddlewareWithSentry.js'; export { wrapPageComponentWithSentry } from '../common/wrapPageComponentWithSentry.js'; export { wrapGenerationFunctionWithSentry } from '../common/wrapGenerationFunctionWithSentry.js'; export { withServerActionInstrumentation } from '../common/withServerActionInstrumentation.js'; export { withSentryAPI, wrapApiHandlerWithSentry } from './wrapApiHandlerWithSentry.js'; /** Inits the Sentry NextJS SDK on the Edge Runtime. */ function init(options = {}) { addTracingExtensions(); if (isBuild()) { return; } const customDefaultIntegrations = [...getDefaultIntegrations(options), rewriteFramesIntegration()]; const opts = { defaultIntegrations: customDefaultIntegrations, ...options, }; applySdkMetadata(opts, 'nextjs'); init$1(opts); } /** * Just a passthrough in case this is imported from the client. */ function withSentryConfig(exportedUserNextConfig) { return exportedUserNextConfig; } export { init, withSentryConfig }; //# sourceMappingURL=index.js.map