- Always check types using
pnpm run type-check. - Always use shadcn skill for UI components and interacting with shadcn.
- Never make try catches without logging the error, and never ignore errors silently. Always log the error with context.
- When using Convex for authentication always use Convex Auth
- When you want email sending:
- Plain Next.js on cloudflare workers: Use
send_emailbinding (https://developers.cloudflare.com/email-service/configuration/send-bindings/) - With Convex: Send emails through Cloudflare Email Service through API using their library cloudflare (docs).
- Plain Next.js on cloudflare workers: Use
- When you are setting up Convex then always run
npx convex ai-files installto install skills and other AI files so you could better understand Convex.
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ before writing any code. Heed deprecation notices.