Skip to content

process is undefined in @clerk/shared in cloudflare workers #8459

@BryceMehring

Description

@BryceMehring

Preliminary Checks

Reproduction

I'm using clerk like so:

import { createClerkClient } from '@clerk/backend';

Publishable key

N/A

Description

process.env is not defined in certain ENVs like cloudflare workers. You added this via 9b57986#diff-d96799d2fd54da88ed62847443a3b141f3d481b8ee1b09a05cad557cdb374b5cR79 in packages/shared/src/proxy.ts

In other parts of the codebase you check if the path to process.env is defined:

(typeof process !== 'undefined' && process.env && isTruthy(process.env.CLERK_TELEMETRY_DISABLED))

Environment

Cloudflare workers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions