MCPcopy
hub / github.com/QwikDev/qwik / setServerPlatform

Function setServerPlatform

packages/qwik/src/server/platform.ts:73–79  ·  view source on GitHub ↗
(
  opts: SerializeDocumentOptions,
  manifest: ResolvedManifest | undefined
)

Source from the content-addressed store, hash-verified

71
72/** Applies NodeJS specific platform APIs to the passed in document instance. */
73export async function setServerPlatform(
74 opts: SerializeDocumentOptions,
75 manifest: ResolvedManifest | undefined
76) {
77 const platform = createPlatform(opts, manifest);
78 setPlatform(platform);
79}
80
81export const getSymbolHash = (symbolName: string) => {
82 const index = symbolName.lastIndexOf('_');

Callers 1

renderToStreamFunction · 0.90

Calls 2

setPlatformFunction · 0.90
createPlatformFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…