This commit is contained in:
Samandar Turgunboyev
2026-02-26 13:20:30 +05:00
parent 5e60ac8dd4
commit e7f0731353
2 changed files with 6 additions and 7 deletions

View File

@@ -1,13 +1,11 @@
// app/[locale]/about/page.tsx
export const revalidate = 0;
import { partner_api } from '@/features/about/lib/api';
import { AboutContent } from '@/features/about/ui/AboutContent';
import { AboutHero } from '@/features/about/ui/AboutHero';
import { PartnershipForm } from '@/features/about/ui/AboutPage';
import { BASE_URL } from '@/shared/config/api/URLs';
import { Metadata } from 'next';
import AboutSEO from './AboutSEO';
export const revalidate = 0;
function getImageUrl(image?: string | null): string {
if (!image) return '/placeholder.svg';
@@ -40,8 +38,8 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
: banner.description_en;
return {
title: title || 'Gastro Market',
description: description || 'Gastro Market mahsulotlarini kashf eting',
title: title,
description: description,
openGraph: {
title,
description,
@@ -74,7 +72,6 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
const AboutPage = async () => {
return (
<div className="custom-container">
<AboutSEO /> {/* Client-side SEO */}
<AboutHero />
<AboutContent />
<PartnershipForm />

View File

@@ -10,7 +10,9 @@ export const partner_api = {
},
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;
},
};