TTC
Theo's Typesafe Cultmiklos
Caching getSignedUrl without DB?
In my tRPC using app, I store image files on Cloudflare R2. The client browse these images by listing them over a query method, that generates a signed url for each with
getSignedUrl
. However for each request the client makes, these signed URL change all the time, making the browser really overfetch these resources. My idea was storing these signed URLs in the db, but I don't like the extra latency the DB reads would introduce. Making getSignedUrl
deterministic would be a much cleaner solution, unfortunately the package doesn't support this. What are my options here?N
Neto•13d ago
indexeddb
N
Neto•13d ago
MDN Web Docs
IndexedDB API - Web APIs | MDN
IndexedDB is a low-level API for client-side storage of significant amounts of structured data, including files/blobs. This API uses indexes to enable high-performance searches of this data. While Web Storage is useful for storing smaller amounts of data, it is less useful for storing larger amounts of structured data. IndexedDB provides a solut...
21KMembers
View on DiscordWant results from more Discord servers?
More PostsVercel and Cloudflare DDoS protectionHello!
I have a question, If I host my site on vercel and put static files on the site like logo orSystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EINVAL (invalid aI cloned create t3 app locally, then I tried to run it locally by first running
pnpm install
then pnAnimating a background moving between grid elementsI made this simple switch but I wanna animate the background moving from left to right instead of haIs Theo's new tutorial any good for a Vue Dev?Truth be told I have never touched React or any .tsx before. However I have been doing vue for the lEmail exist verificationdoes anyone knows a way to verify if an email exists? like is there such a package or services with Issues with Clerk and Unit testingI am working on a project for work and we have a strict requirement for unit tests. I decided to go Drizzle + SQLite updated at fieldIs the only way to have an updated at field in SQLite just setting the updated at by hand on each upHow can I replicate the vanilla behavior of NextJS API routing in T3 stack?I am currently working on a project in which i would like to have my server side requests to an endp