mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
* fix(local-mcp): return values from database operations * fix(local-mcp): pg-meta status code forwarding
11 lines
257 B
TypeScript
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')
|
|
}
|
|
}
|