amical/apps/www/lib/metadata.ts
Naomi Chopra 74ffdbe419
feat(www): add basic layout including header, footer and meta (#3)
- Added new UI components including Badge, Button, Card, Checkbox, Dialog, Footer, Input, Label, SubscriptionForm, Textarea, and Tooltip.
- Implemented a new layout configuration with improved navigation and metadata handling.
- Integrated third-party libraries for enhanced functionality (e.g., Radix UI, Lucide).
- Updated global styles and added custom CSS variables for theming.
- Introduced new pages for Changelog, Contact, Community, and GitHub redirection.
- Updated package dependencies in package.json and pnpm-lock.yaml.
- Added Open Graph image generation for better social media sharing.
- Included favicon and application icons for branding.
2025-05-09 18:12:08 +05:30

27 lines
No EOL
988 B
TypeScript

import { Metadata } from 'next';
export const baseUrl = new URL(
process.env.NEXT_PUBLIC_APP_URL ?? 'https://amical.ai'
);
export function createMetadata(metadata: Metadata): Metadata {
return {
...metadata,
title: {
template: '%s | Amical - Open Source Speech-to-Text App powered by Gen AI',
default: 'Amical - Open Source Speech-to-Text App powered by Gen AI',
},
description: 'Type 10x faster, no keyboards needed. Fast, Accurate, Context-aware and Private.',
metadataBase: baseUrl,
openGraph: {
title: 'Amical - Open Source Speech-to-Text App powered by Gen AI',
description: 'Type 10x faster, no keyboards needed. Fast, Accurate, Context-aware and Private.',
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: 'Amical - Open Source Speech-to-Text App powered by Gen AI',
description: 'Type 10x faster, no keyboards needed. Fast, Accurate, Context-aware and Private.',
},
};
}