Muhct
Muhct
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Muhct on 8/17/2024 in #questions
Is there a built-in way to prevent ID duplicates using Zod?
yup I saw that discussion but no one mentions a built-in way to prevent duplicates, just workarounds that would be last resource for me
5 replies
TTCTheo's Typesafe Cult
Created by Muhct on 7/14/2024 in #questions
Using hardcoded data for comparison in unit tests with toEqual?
I see... so if you use .toMatchInlineSnapshot() you only have to provide it the hardcoded dirty/input data, and then when you run the test for the first time, it will automatically modify your test file to add the generated clean/output data... right? So at the end of the day you would still have 2 large blocks of hardcoded data
8 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/22/2024 in #questions
Best practices for rendering the version of your app
gotcha, thanks!
14 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/22/2024 in #questions
Best practices for rendering the version of your app
and the CI would change the value of the VERSION const without "dirtying" the commit history?
14 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/22/2024 in #questions
Best practices for rendering the version of your app
you mean I should set up a Github CI/CD pipeline? Or can Vercel handle this by its own?
14 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/29/2023 in #questions
Sizes prop in the <Image/> component
not sure what you mean, I'm only talking about the sizes prop - it doesnt have any effect in my website images with or without cache disabled, so I'm not sure what is its purpose
5 replies