MCPcopy Index your code
hub / github.com/Waishnav/devspace / appCsp

Function appCsp

src/server.ts:428–437  ·  view source on GitHub ↗
(config: ServerConfig)

Source from the content-addressed store, hash-verified

426}
427
428function appCsp(config: ServerConfig): {
429 resourceDomains: string[];
430 connectDomains: string[];
431} {
432 const publicBaseUrl = config.publicBaseUrl.replace(/\/+$/, "");
433 return {
434 resourceDomains: [publicBaseUrl],
435 connectDomains: [publicBaseUrl],
436 };
437}
438
439function uiBuildDirectory(): string {
440 return fileURLToPath(new URL("../dist/ui", import.meta.url));

Callers 1

createMcpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected