MCPcopy
hub / github.com/simstudioai/sim / getWorkspaceIdForCompile

Function getWorkspaceIdForCompile

apps/sim/app/api/files/serve/[...path]/route.ts:57–59  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

55}
56
57function getWorkspaceIdForCompile(key: string): string | undefined {
58 return parseWorkspaceFileKey(key) ?? undefined
59}
60
61const IMMUTABLE_CACHE_CONTROL = 'private, max-age=31536000, immutable'
62const WORKSPACE_REVALIDATE_CACHE_CONTROL = 'private, no-cache, must-revalidate'

Callers 2

handleLocalFileFunction · 0.85
handleCloudProxyFunction · 0.85

Calls 1

parseWorkspaceFileKeyFunction · 0.90

Tested by

no test coverage detected