Skip to content

Automatically detect Vercel Edge Runtime and disable SDK accordingly #6346

@lforst

Description

@lforst

Problem Statement

The Next.js SDK crashes when run on the Vercel Edge Runtime. We have the means to check whether the SDK runs inside that runtime, so we can simply disable the SDK if that is the case.

Solution Brainstorm

As suggested by members of Vercel we could do a check like typeof EdgeRuntime !== "string" and just don't init.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions