Typedef
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Typedef on 9/17/2024 in #questions
_error.tsx on nextjs pages
Do you guys know if its possible to make a custom page for Vercel serverless timeouts, I tried _error and 500 on pages folder doesnt seem to work.
Existing discussion on Vercel's github doesnt have replies either.
2 replies
PPrisma
•Created by Typedef on 8/2/2024 in #help-and-questions
I/O error: Device or resource busy
I'm getting this error sometimes, what does it mean?
Kind: Server selection timeout: No available servers.
2 replies
PPrisma
•Created by Typedef on 6/5/2024 in #help-and-questions
default value not changing
I changed the default value of one of my fields on the schema but it doesnt propagate even if i generate the schema again?
example
showPricingBgImage Boolean @default(true)
to
showPricingBgImage Boolean @default(false)
when querying the data that has no showPricingBgImage
4 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 2/14/2024 in #questions
NextAuth vercel preview getserversession returns null
I'm using next pages, My
getserversession
on trpc createContext is returning null on preview deployments, anyone know why this is?
useSession gets the right session tho2 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 11/21/2023 in #questions
Vercel Out of memory event error
2 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 10/5/2023 in #questions
NextJS app in a wordpress subdirectory
How would i deploy a Nextjs App on a wordpress subdirectory? any ideas?
2 replies
PPrisma
•Created by Typedef on 9/30/2023 in #help-and-questions
Edge + Accelerate cold start
Is there coldstart with edge + accelerate?
it takes like 10 seconds for my query to get a result
is this normal?
Any way to speed it up?
25 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 9/20/2023 in #questions
Selecting through transparent background KonvaJS
4 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 9/14/2023 in #questions
WordPress Landing + NextJS Dashboard
What’s the best way to combine a wordpress landing page to a nextjs dashboard with the same domain?
Wordpress -> domain.com
NextJS Dashboard -> app.domain.com
6 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 9/5/2023 in #questions
TRPC's useContext does not invalidate query.
4 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 9/1/2023 in #questions
TRPC The inferred type of this node exceeds the maximum length the compiler will serialize.
3 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 8/1/2023 in #questions
Redux reducer type error
3 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 7/26/2023 in #questions
NextAuth manual email verification
Im trying to implement manual email verification.
So I created a VerificationToken with the identifier and token but when going to the link I'm always getting an error.
Am I not doing it correctly? Dont I just need to create a verification token in the database and replace the query params?
2 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 7/26/2023 in #questions
NextAuth getting session token in the backend.
2 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 7/12/2023 in #questions
Generating 1200x1200 10,000 unique images in lambda.
I'm using lambda for this one, I'm generating 1200x1200 10,000 unique images but it reaches the timeout limit.
Any recommendation to make this faster? without removing status updates.
9 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 7/11/2023 in #questions
NextAuth dangerous website on email login
I keep getting dangerous website on chrome when I click on the url in the login email from email provider.
I believe its caused by
secure: false
from my nodemailer options. I am using outlook's smtp with port 587 and need to turn off secure false and enable tls instead.
Any workarounds?2 replies
TTCTheo's Typesafe Cult
•Created by Typedef on 6/30/2023 in #questions
Need advice on handling 10,000 images on Lambda
I need advice, I have a SQS that triggers lambda, it's an image processor that takes in 10,000 images and archives them in a zip file then uploads it to S3.
I'm getting
array buffer allocation
on the archiving part. I might need more memory, currently has a max of 2560mb ram. This might be happening because I'm putting all the archived objects in a buffer instead of streaming, but it doesnt not work if i stream on lambda.
Should I make two lambda functions one for processing the image and uploading everything to s3, and another one for zipping it?6 replies