fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// app/[locale]/about/page.tsx
|
||||
export const dynamic = 'force-dynamic';
|
||||
import { AboutContent } from '@/features/about/ui/AboutContent';
|
||||
import { AboutHero } from '@/features/about/ui/AboutHero';
|
||||
import { PartnershipForm } from '@/features/about/ui/AboutPage';
|
||||
@@ -12,10 +13,8 @@ function getImageUrl(image?: string | null): string {
|
||||
|
||||
const fetchAboutData = async () => {
|
||||
const res = await fetch(
|
||||
`https://api.gastro.felixits.uz/api/v1/shared/aboutus/`,
|
||||
{
|
||||
cache: 'no-store',
|
||||
},
|
||||
'https://api.gastro.felixits.uz/api/v1/shared/aboutus/',
|
||||
{ next: { revalidate: 10 } }, // 5 daqiqa
|
||||
);
|
||||
if (!res.ok) throw new Error(`Failed to fetch about data: ${res.status}`);
|
||||
return res.json();
|
||||
|
||||
Reference in New Issue
Block a user