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