danmrkw
danmrkw
TTCTheo's Typesafe Cult
Created by l on 4/13/2023 in #questions
S3 with TRPC
I have done this in my project librepoll https://github.com/danielmarkow/librepoll/blob/main/src/server/api/routers/formDataRouter.ts by creating an user on AWS with restricted rights. I use this user with the AWS sdk to create the presigned URLs. The bucket itself remains private.
15 replies
TTCTheo's Typesafe Cult
Created by yaviscoke on 4/15/2023 in #questions
Connect Prisma to AWS RDS Database (PostgreSQL)
(Assuming your app runs on vercel the database needs to be accessible from the open internet. If not the vpc should allow in- / egress from the ip of where your application is running)
4 replies
TTCTheo's Typesafe Cult
Created by yaviscoke on 4/15/2023 in #questions
Connect Prisma to AWS RDS Database (PostgreSQL)
4 replies
TTCTheo's Typesafe Cult
Created by yaviscoke on 4/15/2023 in #questions
Connect Prisma to AWS RDS Database (PostgreSQL)
Does your database run in a VPC that is reachable from the public internet?
4 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 3/29/2023 in #questions
setData doesn't update state
That was it. Thanks for your reply 🙂
3 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 3/22/2023 in #questions
create csv on the backend and server for download
or reading that api doc maybe Google Drive... 😄
13 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 3/22/2023 in #questions
create csv on the backend and server for download
I am considering offering the option to use the microsoft 365 API to write directly into that users OneDrive
13 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 3/22/2023 in #questions
create csv on the backend and server for download
and yeah it updates regularly so I'd have to put it into s3 on click
13 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 3/22/2023 in #questions
create csv on the backend and server for download
and it should destroy in s3 once it is downloaded
13 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 3/22/2023 in #questions
create csv on the backend and server for download
the problem is this is sensitive data. so the download link should only be accessible to that user.
13 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 3/22/2023 in #questions
create csv on the backend and server for download
thanks for the reply. it's up to 2000 rows so I'll give that a try.
13 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 2/20/2023 in #questions
type of a TRPC mutation
typescript seems to accept that - thank you 🙂
8 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 2/20/2023 in #questions
type of a TRPC mutation
Thanks for replying. I use the same mutation in the parent component as well as in the child. Seems inefficient to repeat oneself.
8 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 1/29/2023 in #questions
trpc query only once parameter is not null
thanks for your comments this helps a lot 👍
10 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 1/29/2023 in #questions
trpc query only once parameter is not null
The procedure is actually protected but it seemed inefficient to me to generate network requests destined to fail
10 replies
TTCTheo's Typesafe Cult
Created by danmrkw on 1/29/2023 in #questions
trpc query only once parameter is not null
I have found the options 🙂 const cart = api.cart.getCart.useQuery({ userId: sessionData?.user?.id },{queryKey: ["cart", "getCart", sessionData],});
10 replies
TTCTheo's Typesafe Cult
Created by theFern on 11/16/2022 in #questions
tRPC, query invalidation is not working
thanks for this! read it, checked my code, facepalmed 🙂
13 replies