GamerZero
Explore posts from serversTTCTheo's Typesafe Cult
•Created by GamerZero on 7/22/2024 in #questions
Controller is already closed error
My production logs are filled with this error
Is there anything i can do about it?
7 replies
TTCTheo's Typesafe Cult
•Created by GamerZero on 1/30/2023 in #questions
How to preload conditionally rendered next/image
In my app i have slideshow/presentation thing where images appear in full-screen one after another. I achieve that using conditional rendering (show different images based on a state).
The problem is that when the slide is shown for the first time, image starts loading and worsens the experience. How could i preload all the images at once?
I've already tried adding
next/head
with <link rel="preload" as="image" type="image/png" />
for all the required images, but it doesn't seem to help.1 replies
TTCTheo's Typesafe Cult
•Created by GamerZero on 12/25/2022 in #questions
Prisma suddenly stopped working in docker deployments
My docker deployments of T3 apps just broke. They all use the up-to-date Dockerfile from the T3 docks. Strangely, it seems to me like even those that i haven't rebuilt in a long time broke. So the problem might be somewhere in my system maybe? (my host is Ubuntu 22.04).
Here's the error i get when any prisma call happens in my app:
1 replies
TTCTheo's Typesafe Cult
•Created by GamerZero on 11/22/2022 in #questions
Is it possible to run websocket (trpc subscriptions) server in the same process as nextjs app?
Official TRPC example on using websockets with next (https://github.com/trpc/examples-next-prisma-websockets-starter) seem to run them separately, but it doesn't really look right to me, as i'm not ever planning to run my app on edge or serverless, and just want this stupid-simple monolith.
10 replies