* 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>
12 lines
328 B
TypeScript
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'
|
|
}
|