- Merge the duplicate Organization/LocalBusiness JSON-LD blocks (home's LocalBusiness + o-kompanii's Organization) into one shared getOrganizationSchema() call rendered on every page. Deliberately NOT wired through the root layout: fetches there get frozen into the static shell at build time (backend unreachable during image build) and never revalidate, silently serving stale data to crawlers - each page calls it directly instead, where revalidation is proven to work. - Add optional ItemList schema on /uslugi and Offer/OfferCatalog schema on /aktsii; entity pages (/uslugi/[slug] Service, /blog/[slug] Article) reference the organization via @id instead of duplicating it. - Add 8 more real FAQ entries (pricing model, contract terms, onboarding time, hybrid IT staff setup, supported stacks, backups, 152-FZ compliance, escalation) and give every FAQ its own slug and dedicated /faq/[slug] page with its own title/H1/FAQPage schema, modeled on the one-topic-per-page pattern (h/t remontka.pro). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013otXCiTZsxdZ4SJKZ9wUky
43 lines
1.5 KiB
React
43 lines
1.5 KiB
React
import Header from '../../components/Header.jsx';
|
|
import Footer from '../../components/Footer.jsx';
|
|
import Faq from '../../components/sections/Faq.jsx';
|
|
import { serverApi } from '../../lib/serverApi.js';
|
|
import { getOrganizationSchema } from '../../lib/schema.js';
|
|
|
|
export const metadata = {
|
|
title: 'Частые вопросы об IT-аутсорсинге и услугах',
|
|
description: 'Ответы на частые вопросы об IT-аутсорсинге, техподдержке, оплате услуг и конфиденциальности данных TopSysOps.',
|
|
alternates: { canonical: '/faq' },
|
|
};
|
|
|
|
export default async function FaqPage() {
|
|
const [faqs, orgSchema] = await Promise.all([serverApi.getFaqs(), getOrganizationSchema()]);
|
|
|
|
const faqSchema =
|
|
faqs.length > 0
|
|
? {
|
|
'@context': 'https://schema.org',
|
|
'@type': 'FAQPage',
|
|
mainEntity: faqs.map((f) => ({
|
|
'@type': 'Question',
|
|
name: f.question,
|
|
acceptedAnswer: { '@type': 'Answer', text: f.answer },
|
|
})),
|
|
}
|
|
: null;
|
|
|
|
return (
|
|
<div>
|
|
{/* eslint-disable-next-line react/no-danger */}
|
|
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(orgSchema) }} />
|
|
{faqSchema && (
|
|
// eslint-disable-next-line react/no-danger
|
|
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }} />
|
|
)}
|
|
<Header />
|
|
<Faq faqs={faqs} headingLevel="h1" />
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|