Skip to content

detectPublicBaseUrl

detectPublicBaseUrl(env): string | undefined

Defined in: packages/core/src/utils/public-origin.ts:60

The address the hosting platform publishes in env, as an origin, or undefined when none is set. It is the platform’s own domain, a working fallback but the wrong link behind a custom domain. Cloud Run, AWS App Runner, Lambda function URLs and Cloudflare Workers publish nothing.

Env

string | undefined