abhwshek
TTCTheo's Typesafe Cult
•Created by abhwshek on 7/11/2024 in #questions
Sentry or Axiom? or both?
Whats sentry good at? Where should I use axiom instead?
Or, can I use both, and if yes, how?
My main goal is to set up alerts when requests fail in my
pages/api
endpoint, and if any frontend page breaks; how can I achieve this in the best way?3 replies
TTCTheo's Typesafe Cult
•Created by abhwshek on 6/19/2024 in #questions
Best Practices for Structuring the /api folder in Next.js
While we all have our preferred methods for organizing Next.js projects, I haven't been able to find a comprehensive guide specifically focused on structuring the /pages/api folder and keeping API-side code well-organized
This might be because many of us come from a frontend background and approach the /api folder with a "make it work" mentality. Would love to hear your thoughts on how you structure your /pages/api folder in your Next.js projects. Are there any recommended practices or design patterns you've found that have streamlined your API development workflow?
For example, do you group related API routes into subfolders? How do you handle middleware or shared logic across API routes? What are some great guides (similar to bulletproof-react) or repositories that I can refer?
Thanks in advance for sharing your expertise!
2 replies
TTCTheo's Typesafe Cult
•Created by abhwshek on 6/13/2024 in #questions
Observability in Next.js
How do y'all manage logging, monitors, and observability in general for your Next.js apps? I am looking for something that logs all incoming requests, the message etc, and also set up monitors based on it.
14 replies
TTCTheo's Typesafe Cult
•Created by abhwshek on 6/12/2024 in #questions
How to port an app from Next.js to the T3 Stack?
Do I just need to port it over to trpc? The app that I'm talking about is quite large
3 replies