- Add dynamic OG image generation endpoint (/og) adapted from monorepo - Replace favicon with monorepo version, remove unused icon.svg - Add seo.ts config, robots.ts, sitemap.ts for better search indexing - Add per-page metadata (editor, viewer, settings, profile, community) - Remove stale package-lock.json that caused ENOWORKSPACES errors with Next.js - Add OG fonts (Geist Regular, Plus Jakarta Sans SemiBold) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
import type { MetadataRoute } from 'next'
|
|
import { siteConfig } from './seo'
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: '*',
|
|
allow: ['/', '/viewer/', '/u/'],
|
|
disallow: ['/api/', '/editor/', '/settings', '/_next/'],
|
|
},
|
|
],
|
|
sitemap: `${siteConfig.url}/sitemap.xml`,
|
|
host: siteConfig.url,
|
|
}
|
|
}
|