MCPcopy
hub / github.com/rx-angular/rx-angular / generate

Method generate

libs/isr/server/src/cache-generation.ts:43–58  ·  view source on GitHub ↗
(
    req: Request,
    res: Response,
    providers?: Provider[],
    mode: 'regenerate' | 'generate' = 'regenerate',
  )

Source from the content-addressed store, hash-verified

41 };
42
43 async generate(
44 req: Request,
45 res: Response,
46 providers?: Provider[],
47 mode: 'regenerate' | 'generate' = 'regenerate',
48 ): Promise<IGeneratedResult | void> {
49 const { url } = req;
50 const variant = getVariant(req, this.isrConfig.variants);
51 const cacheKey = this.getCacheKey(
52 url,
53 this.isrConfig.allowedQueryParams,
54 variant,
55 );
56
57 return this.generateWithCacheKey(req, res, cacheKey, providers, mode);
58 }
59
60 async generateWithCacheKey(
61 req: Request,

Callers

nothing calls this directly

Calls 2

generateWithCacheKeyMethod · 0.95
getVariantFunction · 0.90

Tested by

no test coverage detected