Skip to content

Commit a9ef8e5

Browse files
committed
test
1 parent d0f0f3d commit a9ef8e5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/sveltekit/src/server/handle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
winterCGRequestToRequestData,
1515
withIsolationScope,
1616
} from '@sentry/core';
17-
import { type Handle, type ResolveOptions, VERSION } from '@sveltejs/kit';
17+
import { type Handle, type ResolveOptions } from '@sveltejs/kit';
1818

1919
import { DEBUG_BUILD } from '../common/debug-build';
2020
import { flushIfServerless, getTracePropagationData, sendErrorToSentry } from './utils';
@@ -95,7 +95,7 @@ export function addSentryCodeToPage(options: { injectFetchProxyScript: boolean }
9595
export function sentryHandle(handlerOptions?: SentryHandleOptions): Handle {
9696
const options: Required<SentryHandleOptions> = {
9797
handleUnknownRoutes: false,
98-
injectFetchProxyScript: isFetchProxyRequired(VERSION),
98+
injectFetchProxyScript: isFetchProxyRequired('2.16.0'),
9999
...handlerOptions,
100100
};
101101

packages/sveltekit/src/vite/sentryVitePlugins.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export async function sentrySvelteKit(options: SentrySvelteKitPluginOptions = {}
2626
adapter: options.adapter || (await detectAdapter(options.debug)),
2727
};
2828

29+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
30+
// @ts-ignore - just testing for now
31+
const kit = await import('@sveltejs/kit');
32+
console.log('XX kit version', kit.VERSION);
33+
2934
const sentryPlugins: Plugin[] = [];
3035

3136
if (mergedOptions.autoInstrument) {

0 commit comments

Comments
 (0)