Files
supabase/apps/studio/lib/api/self-hosted/util.ts
T
Greg Richardson 081a75350e fix(local-mcp): database operations (#38965)
* fix(local-mcp): return values from database operations

* fix(local-mcp): pg-meta status code forwarding
2025-09-23 16:41:36 -06:00

11 lines
257 B
TypeScript

import { IS_PLATFORM } from 'lib/constants'
/**
* Asserts that the current environment is self-hosted.
*/
export function assertSelfHosted() {
if (IS_PLATFORM) {
throw new Error('This function can only be called in self-hosted environments')
}
}