MCPcopy
hub / github.com/dubinc/dub / prefixWorkspaceId

Function prefixWorkspaceId

apps/web/lib/api/workspaces/workspace-id.ts:1–3  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

1export const prefixWorkspaceId = (workspaceId: string) => {
2 return workspaceId.startsWith("ws_") ? workspaceId : `ws_${workspaceId}`;
3};
4
5export const normalizeWorkspaceId = (workspaceId: string) => {
6 return workspaceId.startsWith("ws_c")

Callers 13

getFeatureFlagsFunction · 0.90
useDomainsFunction · 0.90
transformAuditLogTBFunction · 0.90
getLinkOrThrowFunction · 0.90
transformLinkFunction · 0.90
getDomainOrThrowFunction · 0.90
throwIfNoAccessFunction · 0.90
GETFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…