Context7 pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt. Create a Next.js middleware that checks for a valid ...