Skip to content

feat: Add simple, optional production error logging utility for improved DX #2173

@MarcorpAI

Description

@MarcorpAI

Is your feature request related to a problem? Please describe.

i noticed the T3 Stack template doesn't include an easy, minimal way for users to track silent production errors (like unhandled rejections or uncaught exceptions) in their deployed application

Describe the solution you'd like to see

I propose adding an optional error logging utility via Bugmail. This setup is perfect for solo developers and micro-SaaS builders using the T3 pattern who find Sentry/Datadog to be overkill and overly complex to configure.

The contribution is minimal and opt-in:

Single File: A standalone utility for clean, type-safe logging logic.

Opt-in: Code runs only if the user sets the NEXT_PUBLIC_BUGMAIL_KEY environment variable.

Zero Bloat: Only a few lines of code are added to the global error boundary.

Value
This provides T3 users with a production-ready error tracking solution that strictly adheres to minimalism and prioritizes Developer Experience (DX) over unnecessary features.

Describe alternate solutions

id say sentry but its Too heavy and complex for a clean T3 boilerplate. Requires extensive configuration, source maps, and is costly for solo developers.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions