Files
supabase/e2e/studio/utils/is-cli.ts
Michael Ong 7b91d64b7e chore: add final e2e tests for table-editor and sql-editor (#36917)
* chore: add final e2e tests for table-editor and sql-editor

* chore: update tests to run in staging

* chore: minor updates

* chore: fix PR feedback

---------

Co-authored-by: Jordi Enric <37541088+jordienr@users.noreply.github.com>
2025-07-19 10:58:25 +00:00

12 lines
328 B
TypeScript

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