elpupper
Explore posts from serversTTCTheo's Typesafe Cult
•Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
I'm trying to figure out how or if I can somehow have the Object thats put in the presigned URL to have a expiration time as well and not only the url.
81 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 7/6/2023 in #questions
Prisma not connecting to DB in amplify
Hey guys so i got the following schema
and in one of my api endpoints i am doing
this works perfectly locally and nothing goes wrong but then when i pushed it to prod i kept getting
Internal Server Error
I added a try catch block to see what the error is and it gave me {"error":{"clientVersion":"4.7.1"}}
I dont know what im doing wrong. any ideas?220 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 7/4/2023 in #questions
t3 turbo env vars
So I have a secret key that i am using in one of my api routes. Everything works fine but when i go to deploy in AWS amplify it doesnt work. I added it to the environment variables... I tried building
with-env
not sure why its not working.
Also have this issue with my cloudflare envs in amplify.
47 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 6/17/2023 in #questions
Tracking request/useMutation progress
I have a tRPC endpoint that takes in images in base64, and in the frontend i want the user to be able to watch the progress of the files being uploaded. Not sure on how to really do that. is there a function im missing? I tried looking at the documentation and cant find what im looking for.
205 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 6/10/2023 in #questions
Using JSZip with Zod and tRPC
I am making a uploadRouter for my website where a user can upload 5-10 images. I want to be able to zip those image and then upload it to a r2 endpoint.
I never really worked with zipping and image schemas in Zod and tRPC so im not sure on what to do.
Here is what I have so far
This is the error im getting
124 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 5/30/2023 in #questions
@next/font turbo t3
You might be using incompatible version of
@next/font
(13.4.4) and next
(13.1.6). what version should i use? Also in the future where can i find the compatible versions?
I ran pnpm --filter nextjs add @next/font
23 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 5/20/2023 in #questions
t3-turbo packages
How do I install packages for expo and/or nextjs? I'm using pnpm. I tried to do
pnpm i [package] -w
then tried to pnpm expo install [package]
inside the expo folder but no luck
Unable to resolve "@react-navigation/native" from "..\..\node_modules\@react-navigation\native-stack\src\navigators\createNativeStackNavigator.tsx"
20 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 4/23/2023 in #questions
How can i remove the parameter
I want to remove the parameter createdAt cause its of type date.
117 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 4/14/2023 in #questions
TRPC and PRISMA id type
Currently im trying to delete a object using id in prisma using trpc.
but im getting this error
Here is the schema
33 replies
TTCTheo's Typesafe Cult
•Created by elpupper on 4/13/2023 in #questions
Replace fetch with trpc useQuery
I tried to just replace everything in the load function with
to my surprise this didn't work the objects look the same in console when i did console.log()
I do get a red line tho in
const list
6 replies