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

Function buildMiddlewareAwsLambda

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

Source from the content-addressed store, hash-verified

459}
460
461async function buildMiddlewareAwsLambda(config: BuildConfig) {
462 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'aws-lambda', 'index.ts')];
463
464 await build({
465 entryPoints,
466 outfile: join(config.distQwikCityPkgDir, 'middleware', 'aws-lambda', 'index.mjs'),
467 bundle: true,
468 platform: 'node',
469 target: nodeTarget,
470 format: 'esm',
471 external: MIDDLEWARE_EXTERNALS,
472 plugins: [resolveRequestHandler('../request-handler/index.mjs')],
473 });
474}
475
476async function buildMiddlewareCloudflarePages(config: BuildConfig) {
477 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'cloudflare-pages', '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…