Stivo
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Stivo on 9/14/2023 in #questions
Database Query Insights (local MySQL)
I'm using Prisma + MySQL. I'm trying to optimize some queries. What is the best way to get query insights on a local MySQL instance?
2 replies
Right way to catch all unexpected errors before they reach the user
Hi, I was wondering, what's the right way to catch all unexpected errors (like db errors) and replace them with simple "Internal Server Error" erros, before they get to the user. Is it possible to achieve this via middleware?
2 replies
TTCTheo's Typesafe Cult
•Created by Stivo on 12/15/2022 in #questions
NextAuth CredentialsProvider + database strategy
It looks like NextAuth does not want you to use the credentials method in combination with a database. Even when providing a database adapter, NextAuth does not store sessions in the database. Is it advisable to just use JWT instead, or switch to another library?
5 replies
TTCTheo's Typesafe Cult
•Created by Stivo on 12/13/2022 in #questions
Best way to add CRUD to routers without duplicate code
Is there a best practise on how to add CRUD functionality to multiple routers without repeating the code for it?
1 replies