Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

291 B
Raw Blame
import { env } from '../env.config.js'

/**
 * Returns true if running in CLI/self-hosted mode (locally),
 * false if running in hosted mode.
 */
export function isCLI(): boolean {
  // IS_PLATFORM=true = hosted mode
  // IS_PLATFORM=false = CLI/self-hosted mode
  return !env.IS_PLATFORM
}