Deploy

Hi everyone I'm deplyong my first solid start website, but the data seems to be static. I change it on the Sanity CMS, but when I come to the page the data remains the same. Any idea how to solve it?
81 Replies
Daniel Sousa @TutoDS
And I'm seeing Error | Uncaught Client Exception Can anyone please help me? 🙏
Daniel Sousa @TutoDS
I think it's realted with iconify, but why?
No description
Raqueebuddin Aziz
Relevant code?
Daniel Sousa @TutoDS
It's my entire home page I'm trying to deploy it on render.com and on my vps with coolify but isn't fetching the data it's always static I update the data, and keeps showing the old data 😦
<Button
data-aos={'fade-up'}
as={'a'}
href={'/sobre-nos'}
class={'inline-flex items-center gap-1'}
variant={'text'}
>
Sobre nós
<Icon icon={'ph:arrow-right'} />
</Button>
<Button
data-aos={'fade-up'}
as={'a'}
href={'/sobre-nos'}
class={'inline-flex items-center gap-1'}
variant={'text'}
>
Sobre nós
<Icon icon={'ph:arrow-right'} />
</Button>
I'm using the icons for buttons etc no idea how to solve it and how to use the new data instead of the old data Anyone can help me please? 😦
Raqueebuddin Aziz
Send the code on how you data fetch
Daniel Sousa @TutoDS
I disable the SSR and seems to works For home page:
const getHome = cache(async (): Promise<Home | undefined> => {
'use server';

try {
return client.fetch<Home>(getHomeQuery);
} catch {
return;
}
}, 'home');
const getHome = cache(async (): Promise<Home | undefined> => {
'use server';

try {
return client.fetch<Home>(getHomeQuery);
} catch {
return;
}
}, 'home');
Daniel Sousa @TutoDS
The only problem I'm facing is this error with iconify (with SSR disable)
No description
Daniel Sousa @TutoDS
with SSR disable the data updates when I change it on sanity, but the iconify error keeps appearing and I don't know how to solve it 😦 I'm totally desesperated, I need to deploy this today 😦
Raqueebuddin Aziz
do you ever invalidate the getHome cache? or do you mean it doesn't happen even on reload? how are you using iconify btw? unocss?
Daniel Sousa @TutoDS
No, I installed @iconify/solid How I can do that? It's appearing on reload and hard reload
Raqueebuddin Aziz
Let me send some docs does sanity have some websocket thingy that tells you when it's updated? if yes, you need to run this when that happens
import { revalidate } from '@solidjs/router';

revalidate(getHome.key)
import { revalidate } from '@solidjs/router';

revalidate(getHome.key)
Daniel Sousa @TutoDS
I think not, but if I refresh the page the data now appears to be ok the problem is only that error on getComputedStyle
Raqueebuddin Aziz
maybe try unocss to use iconify icons? that usually works for my solid start app
Daniel Sousa @TutoDS
I'm using tailwindcss
Raqueebuddin Aziz
UnoCSS
The instant on-demand Atomic CSS engine
Want results from more Discord servers?
Add your server