Jakub
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Jakub on 8/9/2023 in #questions
i18next App router setup
Hi! Is there some good resource about setting up i18next on app router? I need it to work on server components, client components and store the lang in cookies, so it wouldnt show up in route.
Do you know how i'd approach that?
21 replies
TTCTheo's Typesafe Cult
•Created by Jakub on 6/8/2023 in #questions
Fetching a font on edge
Hi! I have a pretty bizarre bug:
I am fetching a font from my assets folder as shown below to use it in an ImageResponse.
The problem is that the request fails when the url is a variable (?)
(Code below)
https://cdn.discordapp.com/attachments/1116381345627766811/1116381484044009492/image.png
6 replies
TTCTheo's Typesafe Cult
•Created by Jakub on 5/24/2023 in #questions
What are you guys using for landing pages when creating your app?
I don't have much design experience, i want to deliver high quality and nice looking landing pages. How do i approach that? Just write it in Next, inspired from somewhere or use some CMS?
8 replies
TTCTheo's Typesafe Cult
•Created by Jakub on 5/21/2023 in #questions
Can you get current request on server components?
I want to get authorization token from a request on a server component, is it possible?
My use case: render if the user is currently logged in directly from the server
1 replies
TTCTheo's Typesafe Cult
•Created by Jakub on 3/27/2023 in #questions
How should you approach invalidating queries in trpc?
Is is possible to create a onSuccess handler inside procedures? I don't want to write the same invalidating onSuccess function on every query across my application. Creating reusable hooks kinda goes against the ease of trpc. Is there a good way to approach this?
27 replies