Replies: 1 comment
-
If you’re using a static adapter, you can just use the sveltekit SDK, but remove any server side SDK setup code. That should ensure your client-side gets instrumented as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm trying to integrate the JavaScript SDK in a SvelteKit project that uses
@sveltejs/adapter-static
.The SDK works great when in development mode (
npm run dev
) or when building, then running the preview (npm run build
,npm run preview
) as it runs on Node.Did I misconfigure it or is it not supported at all? Reading the docs about compatibility, the static adapter isn't mentioned: https://docs.sentry.io/platforms/javascript/guides/sveltekit/#compatibility
What are the current missing steps for the SDK to work in this scenario?
Beta Was this translation helpful? Give feedback.
All reactions