MCPcopy
hub / github.com/prisma/prisma / getUrlBasePath

Function getUrlBasePath

packages/cli/src/Studio.ts:336–338  ·  view source on GitHub ↗
(url: string | undefined, configPath: string | null)

Source from the content-addressed store, hash-verified

334}
335
336function getUrlBasePath(url: string | undefined, configPath: string | null): string {
337 return url ? process.cwd() : configPath ? dirname(configPath) : process.cwd()
338}
339
340function serializeBffError(error: unknown): SerializedError {
341 return getSerializedBffError(error) ?? serializeError(error)

Callers 1

parseMethod · 0.85

Calls 1

dirnameFunction · 0.85

Tested by

no test coverage detected