mirror of
https://github.com/supabase/supabase.git
synced 2026-07-02 03:54:22 +08:00
12 lines
299 B
TypeScript
12 lines
299 B
TypeScript
import { env } from '../env.config'
|
|
|
|
/**
|
|
* 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 === 'false'
|
|
}
|