File size: 292 Bytes
31e8457
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
/** @internal */
export const isCloudflare =
  typeof navigator !== "undefined" &&
  typeof navigator.userAgent === "string" &&
  navigator.userAgent.includes("Cloudflare")

/** @internal */
export const isEdgeRuntime =
  // @ts-expect-error
  typeof EdgeRuntime === "string" || isCloudflare