Edge Spectrum Endpoint

Add, change or debug an Edge Spectrum API endpoint across its two entry points — the local Express server (site/server.ts) and the Vercel serverless functions (site/api/*) — which must both be thin adapters over shared logic in site/src/server/. Covers Zod validation at the trust boundary, the strategySchema / strategyBounds split that keeps Zod out of the client bundle, and the demo-mode + passcode gate that makes the Gemini advisor fail closed. Use for "add an API route", "the endpoint works locally but 404s/500s on Vercel", "validate this request body", "the advisor returns 503 / 403 / 401", "ADVISOR_PASSCODE", "EDGE_SPECTRUM_MODE", "demo mode", "check:deployment failed", and any work under site/api/, site/server.ts or site/src/server/.

michaelschecht Updated 0 repo stars
Promptbook - searchable prompt templates and skill packs

File contents

michaelschecht/my-prompt-library commit f995c0cbb2

Frequently asked questions

npx get-skill add michaelschecht/edge-spectrum-endpoint