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

Function buildMiddlewareCloudflarePages

scripts/qwik-city.ts:476–489  ·  view source on GitHub ↗
(config: BuildConfig)

Source from the content-addressed store, hash-verified

474}
475
476async function buildMiddlewareCloudflarePages(config: BuildConfig) {
477 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'cloudflare-pages', 'index.ts')];
478
479 await build({
480 entryPoints,
481 outfile: join(config.distQwikCityPkgDir, 'middleware', 'cloudflare-pages', 'index.mjs'),
482 bundle: true,
483 platform: 'node',
484 target: nodeTarget,
485 format: 'esm',
486 external: MIDDLEWARE_EXTERNALS,
487 plugins: [resolveRequestHandler('../request-handler/index.mjs')],
488 });
489}
490
491async function buildMiddlewareBun(config: BuildConfig) {
492 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'bun', 'index.ts')];

Callers 1

buildQwikCityFunction · 0.85

Calls 3

joinFunction · 0.85
resolveRequestHandlerFunction · 0.85
buildFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…