Dor
TTCTheo's Typesafe Cult
•Created by Dor on 9/16/2024 in #questions
T3 Stack with App router - Can't see new posts after mutation
I took a look on it now and tried to implement it and it doesn't solve the problem.
The only thing that solved my issue is importing
useQueryClient
from @tanstack/react-query
and using queryClient.invalidateQueries()
But I feel very uncomfortable with that, there must be a better solution
`5 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
i'm doomed
12 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
I'm not doing anything goofy :theowat:
And it works perefctly when hosted on Vercel - https://unpaack.com
Would you be kind to inspect this live with me?
12 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
I guess, but I'm not attempting to make any connection
I'm just trying to view a webpage
12 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
I have a website where users can upload images and I'm using cloudinary as my provider, which later I display with
Image
component from Next js
When I enter some pages with some photos, the server collapse giving me the error above12 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
Ok I created a droplet on digital ocean again, but the problem persists.
I fixed the remoetPatterns according to the next js docs.
Why is this error happening?
This is so random.
12 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
after spending an entire day digging I gave up and went back to vercel
what's the right way to allow loading images from any website then?
keep in mind that this works both locally and on Vercel, and it works on DigitalOcean too but only on DigitalOcean the server randomly collapse
12 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
This might be a next js version issue. Trying to follow this:
https://medium.com/@pawanjotkaurbaweja/solved-typeerror-fetch-failed-4f7d304c0c68
Will update if it works
12 replies
TTCTheo's Typesafe Cult
•Created by Dor on 4/27/2024 in #questions
internal server error when deploying to DigitalOcean
Ok, this only happens when I try to display an image on a page that is NOT from the same origin URL
But why does the server break though?
I already configured my NextJS config:
```
images: {
remotePatterns: [
{
protocol: "https",
hostname: "",
},
{
protocol: "http",
hostname: "",
},
],
},
12 replies
TTCTheo's Typesafe Cult
•Created by Steve Melons on 11/30/2023 in #questions
Extend next-auth session with drizzle adapter
why is this working out of the box with Prisma but not with drizzle? they need to fix this. I wasted 2 days finding solutions
75 replies
TTCTheo's Typesafe Cult
•Created by EnricoBaivo on 12/14/2023 in #questions
T3, Next.js, Drizzle-adapter, next-auth v5 database User login with extended Fields for User
I did try, it didnt work. My User object cannot be extended no matter what I tried. This seems to happen only when I use drizzle. When I used Prisma, everything worked
3 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/14/2023 in #questions
Why can't I extend the user session object?
Can't tell why but certainly this problem occurs only when using drizzle
I converted all my stack to use Prisma and it worked - user object is being extended
Help what's wrong
4 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/14/2023 in #questions
Why can't I extend the user session object?
4 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/14/2023 in #questions
Why can't I extend the user session object?
4 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/14/2023 in #questions
Drizzle-ORM+PSQL: sorry, too many clients already
Have you came up with something?
I face the same issue (t3-drizzle)
Really driving me crazy
9 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/13/2023 in #questions
How to perform 2 trpc queries, when I need the second query to rely on data from the first?
Lol it worked, I like it!
Think I'll keep this solution for now
But surely good to be aware of 3 different solutions
Thanks guys!
18 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/13/2023 in #questions
How to perform 2 trpc queries, when I need the second query to rely on data from the first?
Right right, I meant more like if its covered in the docs
tRPC docs is my go-to even though it uses react query
Gonna give it a try
18 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/13/2023 in #questions
How to perform 2 trpc queries, when I need the second query to rely on data from the first?
Uuuu that's super cool, is it supported in tRPC?
18 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/13/2023 in #questions
How to perform 2 trpc queries, when I need the second query to rely on data from the first?
Interesting.. In my current case I need the data to appear at once but I get where making a component might work and when to separate the routes
18 replies
TTCTheo's Typesafe Cult
•Created by Dor on 12/13/2023 in #questions
How to perform 2 trpc queries, when I need the second query to rely on data from the first?
Ok so that was my initial thought
I guess I just needed this validation
Thank you!
18 replies