Skip to content

Host web worker for Sentry replay #243

@bruno-garcia

Description

@bruno-garcia

https://docs.sentry.io/platforms/javascript/configuration/tree-shaking/#list-of-flags

SENTRY_EXCLUDE_REPLAY_WORKER
Replacing this flag with true will tree shake all code in the SDK that's related to the included compression web worker for Session Replay. This is only relevant when using Session Replay. Enable this flag if you want to host a compression worker yourself - see Using a Custom Compression Worker for details. We do not recommend enabling this flag unless you provide a custom worker URL.

new Replay({
  workerUrl: "/assets/worker.min.js",
});

https://docs.sentry.io/platforms/javascript/session-replay/configuration/#using-a-custom-compression-worker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions