Entity Engine Fix Runtime Nodejs
Path:
loom-builder/prompts/entity-engine-fix-runtime-nodejs.mdRelative: prompts/entity-engine-fix-runtime-nodejs.mdSubproject: loom-builderCategory: dispatch-promptsLines: 28Bytes: 2,205Imports: 0Exports: 0
Content Preview
- # Fix: Edge Runtime crash on all API routes — entity-engine-digital-presence-zai
- ## USER INTENT (restated)
- Runtime validation (`docs/RUNTIME_VALIDATION-2026-07-17.md`, "Critical Finding") found EVERY API route 500s: Next.js 16 compiles app-router API routes to Edge Runtime by default; `src/lib/api-utils.ts` re-exports from `src/lib/extraction.ts` which imports `crypto`, `node:net`, `node:dns/promises` → `ReferenceError: __import_unsupported` at module eval. Fix on branch `harden/phase1` for the