Use structured logging — never console.log in production
Use a structured logger like pino instead of console.log. Structured logs have timestamps, levels, and are filterable.
Why This Matters
console.log can leak secrets in stack traces, is impossible to filter in production, and lacks log levels for severity-based alerting.
Tags
nextjssupabase
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 2+ others. Get actionable feedback before code ships.