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

Function buildMiddlewareNetlifyEdge

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

Source from the content-addressed store, hash-verified

519}
520
521async function buildMiddlewareNetlifyEdge(config: BuildConfig) {
522 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'netlify-edge', 'index.ts')];
523
524 await build({
525 entryPoints,
526 outfile: join(config.distQwikCityPkgDir, 'middleware', 'netlify-edge', 'index.mjs'),
527 bundle: true,
528 platform: 'node',
529 target: nodeTarget,
530 format: 'esm',
531 external: MIDDLEWARE_EXTERNALS,
532 plugins: [resolveRequestHandler('../request-handler/index.mjs')],
533 });
534}
535
536async function buildMiddlewareNode(config: BuildConfig) {
537 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'node', '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…