oljimenez
Explore posts from serversTTCTheo's Typesafe Cult
•Created by oljimenez on 1/30/2024 in #questions
The HTML Dialog Element vs Headless Component Libraries Dialog
6 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 1/13/2024 in #questions
Nextjs SEO and Google Rank advice...
Thanks, this helps me so much. I would take a look and learn.
35 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 1/13/2024 in #questions
Nextjs SEO and Google Rank advice...
And what it's the impact of a bad page, no server rendered, with bad performance on the rest of the site?
35 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 1/13/2024 in #questions
Nextjs SEO and Google Rank advice...
Thanks!!!
35 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 1/13/2024 in #questions
Nextjs SEO and Google Rank advice...
This is a really big and successful ecommerce, we have the project right now in Django + React, we need improve our SEO and Google Rank because we need more organic traffic to the website. We're currently on a rewrite with Nextjs 14 app router, we have found no problem or reason to change.
35 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 1/13/2024 in #questions
Nextjs SEO and Google Rank advice...
Please, just help me with the question, I don't need a framework battle.
35 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 1/13/2024 in #questions
Nextjs SEO and Google Rank advice...
Thanks. We're doing a big rewrite because SEO, but i need to find proves or something to show my boss that all public pages need good SEO and performance.
For example, we have a public page that's a form to find an order status without login, i want to make that form fully performant, but my boss think only landing page need good SEO and performance, so he think not worthy.
What do you recommend?
35 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 12/15/2023 in #questions
Import components from outside of Nextjs app.
I can't, that's the point.
6 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 12/15/2023 in #questions
Import components from outside of Nextjs app.
6 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
yeah, currently i'm using both, and in this proyect i won't chage that, but i'm trying to build/PR something to fix this ''code style issue'' so in the future i could use both in similar ways or even use kysely always.
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
a year without fixing. I really give up, excepting that the Prisma Client would be fixed in any time soon, that's why i choose Kysely, is better, more control and features, but is more verbose in my opinion, that's why i was trying that wrapper idea
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
I could try to make PR for prisma to fix those issues, but already exist issues/proposals that suggest this in their repo from months or years and they/anybody haven't fix them, so maybe is not easy to do, maybe i'm wrong.
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
yeah, but is hard to make those findMany in two queries, because i would have to omit pagination for the first query and ended pulling thousand of records or more just to do another filter and then manually grouping, with Kysely is way simpler and clearly more performant, but yeah, it break the same feel of using prisma like for everyting
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
Prisma don't support aggregate functions with conditions on relations, example,
Select all clients that have an order count > 8, or sum order.total_price > 200
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
i don't know yet if i can do everything that kysely does, but i already did some basics stuffs, is a work on progress (like i showed in one of the pictures). My point with this question is that, it feel hugly to have differents APIs for all my cases,
Prisma -> Record based,
Zod -> Record based
Kysely -> Array of string based
Remedajs -> Array of strings based
It feels ugly to have so different APIs for this similars things in only single codebase.
One advantage of having the same kind of API in all proyect codebase, is copy and paste. This is why i love prisma and zod working together, because i can copy and paste select statements so ez. But yeah, is clearly obsessive from my part, that's why i'm asking 😂
One advantage of having the same kind of API in all proyect codebase, is copy and paste. This is why i love prisma and zod working together, because i can copy and paste select statements so ez. But yeah, is clearly obsessive from my part, that's why i'm asking 😂
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 8/17/2023 in #questions
Array<string> vs Record<key, true>?
Let me clarify that in the Kysely approach, i'm not recreating Kysely from scratch, this is just a test functions and clases that wrap kysely API to give this Record<key, true> API and still work on progress. I'm not so crazy to try to rebuild kysely myself alone lol.
14 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 3/31/2023 in #questions
TailwindCSS and CVA autocomplete
Nop, my new proyect ( Nextjs 13 app router) just breaks TailwindCSS Intellisense with this regex. Maybe have to be that my editor breaks the line in 140 ch. But either way this way just feels wrong in complex components.
17 replies
TTCTheo's Typesafe Cult
•Created by Amit on 4/10/2023 in #questions
trpc alternatives like zodios, ts-rest
I recommend you zodios + openapi-zod-client https://github.com/astahmer/openapi-zod-client
4 replies
TTCTheo's Typesafe Cult
•Created by oljimenez on 3/31/2023 in #questions
TailwindCSS and CVA autocomplete
Example this button created by shadcn it have broken intellisense in CVA https://ui.shadcn.com/docs/primitives/button
17 replies