Files
ridebus-website/pages/_document.tsx
Zakhar Timoshenko 142ec97959 feat: add Open Graph image generation and SEO metadata
- Introduced `PageSeo` component for managing page metadata for social sharing.
- Created Open Graph image templates using SVG and static fonts for better visual representation.
- Implemented service alert management with functions to check active alerts and format route numbers.
- Added utility functions for generating and watching alert validity.
- Developed a script to generate Open Graph images dynamically based on page content.
- Included tests for service alert functionalities to ensure correctness and reliability.
2026-10-05 13:02:06 +03:00

16 lines
372 B
TypeScript

import { Html, Head, Main, NextScript, DocumentProps } from 'next/document';
export default function Document(props: DocumentProps) {
return (
<Html lang={props.locale || 'en'}>
<Head>
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}