MCPcopy Index your code
hub / github.com/QwikDev/qwik / cityApp

Function cityApp

starters/dev-server.ts:280–295  ·  view source on GitHub ↗
(
  req: Request,
  res: Response,
  next: NextFunction,
  appDir: string,
)

Source from the content-addressed store, hash-verified

278}
279
280async function cityApp(
281 req: Request,
282 res: Response,
283 next: NextFunction,
284 appDir: string,
285) {
286 const ssrPath = join(appDir, "server", `${qwikCityVirtualEntry}.js`);
287
288 const mod = await import(file(ssrPath));
289 const router: any = mod.router;
290 router(req, res, () => {
291 mod.notFound(req, res, () => {
292 next();
293 });
294 });
295}
296
297async function ssrApp(
298 req: Request,

Callers 1

handleAppFunction · 0.85

Calls 4

joinFunction · 0.85
fileFunction · 0.85
routerFunction · 0.50
nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…