Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

442 B
Raw Blame
import type { EnvRow } from './db'
import { fail } from './errors'

export function assignedAppUrl(env: EnvRow): string {
  if (!env.public_url) throw fail('conflict', 'This environment has no assigned URL')
  return env.public_url
}

/** The platform supplies the environment origin for builds and live traffic. */
export interface Origins {
  readonly apiUrl: string
  consoleUrl(): string
  envUrl(env: EnvRow): Promise<string> | string
}