MCPcopy Create free account
hub / github.com/Waishnav/devspace / getWorkspaceAppManifestEntry

Function getWorkspaceAppManifestEntry

src/server.ts:386–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384}
385
386function getWorkspaceAppManifestEntry(): WorkspaceAppManifestEntry {
387 const manifest = readWorkspaceAppManifest();
388 const entry = manifest[WORKSPACE_APP_MANIFEST_ENTRY];
389
390 if (!entry?.file) {
391 throw new Error(`Missing ${WORKSPACE_APP_MANIFEST_ENTRY} in UI manifest.`);
392 }
393
394 return entry;
395}
396
397function assetUrl(baseUrl: string, assetPath: string): string {
398 return `${baseUrl}/${assetPath.replace(/^\/+/, "")}`;

Callers 2

workspaceAppHtmlFunction · 0.85
assertWorkspaceAppAssetsFunction · 0.85

Calls 1

readWorkspaceAppManifestFunction · 0.85

Tested by

no test coverage detected