sathuros
TTCTheo's Typesafe Cult
•Created by ja_iy on 5/10/2023 in #questions
Next font sever/client mismatch in app dir
This shouldn’t happen. Check this doc https://nextjs.org/docs/app/building-your-application/optimizing/fonts#with-tailwind-css
8 replies
TTCTheo's Typesafe Cult
•Created by ja_iy on 5/10/2023 in #questions
Next font sever/client mismatch in app dir
That said, I don’t think you need to use the style tag. It should be applying it automatically
8 replies
TTCTheo's Typesafe Cult
•Created by ja_iy on 5/10/2023 in #questions
Next font sever/client mismatch in app dir
It looks like it’s encoding the
'
. What happens if you dangerously set html for var styles8 replies
TTCTheo's Typesafe Cult
•Created by Manupa Samarawickrama on 5/10/2023 in #questions
Filters while maintaining SSG
Since you can’t specify search parameters for SSG, a more convoluted approach would be to create a separate route and then do a rewrite. Say you have
listings?category=apparel
you can create a separate route /listings/:category
which you generate at build time, the. Rewrite /listings?category=X
to /listings/X
. I haven’t really tried it but it might work32 replies
TTCTheo's Typesafe Cult
•Created by Manupa Samarawickrama on 5/10/2023 in #questions
Filters while maintaining SSG
The simplest thing would be to lean on a long revalidate for your fetch. The page will be generated at request instead of build time, but if the data is getting cached then it should be faster.
32 replies
TTCTheo's Typesafe Cult
•Created by armand.salle on 5/9/2023 in #questions
Next.js : Get server component data in client component
Yep, you can send serializable props from server to client components
6 replies
TTCTheo's Typesafe Cult
•Created by armand.salle on 5/9/2023 in #questions
Next.js : Get server component data in client component
You want your machine to be inside a client component.
https://nextjs.org/docs/getting-started/react-essentials#client-components
6 replies
TTCTheo's Typesafe Cult
•Created by techblooded on 4/27/2023 in #questions
What does acme stand for?
I think it's just a placeholder name for company or project
10 replies
TTCTheo's Typesafe Cult
•Created by Johnson on 4/25/2023 in #questions
how stable is nextjs 13/server side components
While it is still in beta, it is quite usable and has come along way in the past 6 months.
I would recommend taking a look at at their roadmap (https://beta.nextjs.org/docs/app-directory-roadmap) to ensure that the available features meet your needs and then create a quick proof-of-concept of your project just to validate it.
If it doesn't work out you can always revert to pages dir.
6 replies