better-auth
better-auth Integration
Next.js 16 Breaking Changes
| Change | Before | After |
|---|---|---|
| Route protection file | middleware.ts |
proxy.ts |
| Function export | export function middleware |
export function proxy |
headers() |
Sync | Async (await) |
cookies() |
Sync | Async (await) |
params |
Object | Promise (await) |
searchParams |
Object | Promise (await) |
| Edge runtime in proxy | Supported | NOT supported |
# Migration codemod
npx @next/codemod@latest middleware-to-proxy .
More from mumerrazzaq/claude-code-skills-lab
upwork-proposal
|
85chatkit
Build AI chat applications with OpenAI ChatKit SDK. Use when creating chat UIs, multi-session systems, integrating AI agents (OpenAI, Gemini, Claude, Ollama), adding tools with MCP, widgets, or building conversational apps. Covers server setup, Store implementations, frontend integration (@openai/chatkit-react), function tools, MCP servers, multi-user sessions, and streaming responses.
4frontend-design
Create production-grade frontend interfaces with systematic UI/UX design. Use when building web components, pages, or applications. Covers design systems, component states, accessibility (WCAG 2.2), responsive design, and industry conventions. Evaluates existing UI against best practices. Forces design thinking before implementation. Generates distinctive code avoiding generic AI aesthetics while following UX principles.
4message-reply
Draft professional replies to received messages across platforms (LinkedIn, Fiverr, Upwork, Interview, Email, WhatsApp). This skill should be used when the user pastes a received message and needs a reply draft, or says "reply to this", "draft a response", "help me respond to".
3linkedin-content
Create LinkedIn posts, bios, comments, and articles that sound authentically human. This skill should be used when the user wants to write LinkedIn content, says "write a post", "update my bio", "comment on this", or "draft an article".
2