fix
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
// app/[locale]/about/page.tsx
|
// app/[locale]/about/page.tsx
|
||||||
|
export const revalidate = 0;
|
||||||
import { partner_api } from '@/features/about/lib/api';
|
import { partner_api } from '@/features/about/lib/api';
|
||||||
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';
|
||||||
import { BASE_URL } from '@/shared/config/api/URLs';
|
import { BASE_URL } from '@/shared/config/api/URLs';
|
||||||
import { Metadata } from 'next';
|
import { Metadata } from 'next';
|
||||||
import AboutSEO from './AboutSEO';
|
|
||||||
|
|
||||||
export const revalidate = 0;
|
|
||||||
|
|
||||||
function getImageUrl(image?: string | null): string {
|
function getImageUrl(image?: string | null): string {
|
||||||
if (!image) return '/placeholder.svg';
|
if (!image) return '/placeholder.svg';
|
||||||
@@ -40,8 +38,8 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
|
|||||||
: banner.description_en;
|
: banner.description_en;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: title || 'Gastro Market',
|
title: title,
|
||||||
description: description || 'Gastro Market mahsulotlarini kashf eting',
|
description: description,
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
@@ -74,7 +72,6 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
|
|||||||
const AboutPage = async () => {
|
const AboutPage = async () => {
|
||||||
return (
|
return (
|
||||||
<div className="custom-container">
|
<div className="custom-container">
|
||||||
<AboutSEO /> {/* Client-side SEO */}
|
|
||||||
<AboutHero />
|
<AboutHero />
|
||||||
<AboutContent />
|
<AboutContent />
|
||||||
<PartnershipForm />
|
<PartnershipForm />
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ export const partner_api = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async getAbout(): Promise<AxiosResponse<AboutData>> {
|
async getAbout(): Promise<AxiosResponse<AboutData>> {
|
||||||
const res = httpClient.get(API_URLS.About);
|
const res = httpClient.get(API_URLS.About, {
|
||||||
|
headers: { 'Cache-Control': 'no-cache' },
|
||||||
|
});
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user