Armand
Explore posts from serversCDCloudflare Developers
•Created by Armand on 12/16/2024 in #pages-help
Custom URL for preview deployments
Hey! Is there a way to use my custom domain instead of
.pages.dev
for preview URL?
I'm using Clerk for auth and when I test my production preview via CF Pages (with a *.pages.dev
URL), Clerk fails to load because it's not on my custom domain.
I want *.pages.dev
to be *.preview.mydomain.com
Should I use a reverse proxy or maybe a CF Snippet to make this works?4 replies
TTCTheo's Typesafe Cult
•Created by Armand on 5/12/2023 in #questions
Next 13.4 problem with loading state after content is visible & hydration problem
Hey, I have a small app with Next 13.4 with Shadcn Ui 😍 it's really really good.
But I'm also using XState with a provider that I init on my
layout.tsx
file because I save and read the machine from a DB (don't ask why I'm just trying things).
As you can see on the video, when I navigate, the content is first shown with the right data, AND AFTER, the loading state from loading.tsx
is shown...
And I have an hydration problem... I fixed it with a dynamic import but it feels wrong. I'm using the "use client"
directive on my page and layout. I found this article but it didn't help me much...
https://nextjs.org/docs/messages/react-hydration-error
Another question : How to get data from a server component and "add it" to react query as initial data ? 🧐1 replies
TTCTheo's Typesafe Cult
•Created by Armand on 5/9/2023 in #questions
Next.js : Get server component data in client component
Hey, I'm trying the new app dir. It's pretty good, but I'm not sure how to get data from a server component and pass it to my XState machine? 🧐
For now the only way I found is to do it like this
6 replies
TTCTheo's Typesafe Cult
•Created by Armand on 11/17/2022 in #questions
How do you handle loaders and 'flash' with TRPC?
Hey 👋
I'm working with the T3 stack and I'm bored about loaders everywhere. When the data is not cached, I need to show a loader or a skeleton for ≈ 1s, it feels slow and there is a lot of "layout shift". I didn't find a way to avoid them. Is full SSR the way to go?
How do you handle that?
4 replies
TTCTheo's Typesafe Cult
•Created by Armand on 11/12/2022 in #questions
Next Auth not working in production only
14 replies