MCPcopy Index your code
hub / github.com/coder/code-server / createClientConfiguration

Function createClientConfiguration

src/node/http.ts:48–56  ·  view source on GitHub ↗
(req: express.Request)

Source from the content-addressed store, hash-verified

46}
47
48export const createClientConfiguration = (req: express.Request): ClientConfiguration => {
49 const base = relativeRoot(req.originalUrl)
50
51 return {
52 base,
53 csStaticBase: base + "/_static",
54 codeServerVersion,
55 }
56}
57
58/**
59 * Replace common variable strings in HTML templates.

Callers 1

replaceTemplatesFunction · 0.85

Calls 1

relativeRootFunction · 0.85

Tested by

no test coverage detected