shouldShowBypassAuthButton()
@blobs/sdk / utils/environment / shouldShowBypassAuthButton
shouldShowBypassAuthButton():
boolean
Defined in: utils/environment.ts:180
Decide whether to render the dev-mode “bypass auth” button.
Rules:
- If
BLOBS_BYPASS_AUTH_BUTTONis"true", always show. - If
BLOBS_BYPASS_AUTH_BUTTONis"false", never show. - Otherwise, show only when running on a localhost-style host.
Reads from import.meta.env (Vite) or process.env (Node-style).
Returns
boolean
True if the bypass-auth UI should be rendered.