- Split landing pages into Server/Client Components to enable Next.js metadata exports - Add robots.ts, sitemap.ts, JSON-LD structured data, OpenGraph and viewport config - Fix i18n hydration mismatch: detect locale server-side via cookie/Accept-Language header - Replace localStorage with cookie for locale persistence (SSR-readable) - Dynamic <html lang> based on locale cookie - Optimize images with next/image (avif/webp formats, quality config) - Add /homepage route as always-visible landing page (no auth redirect) - Auth-aware CTA buttons: show "Dashboard"/"进入工作台" for logged-in users - Login page redirects authenticated users to dashboard - Unify logout/401 redirect to "/" instead of "/login" - Fix title template to avoid double "Multica" suffix on homepage Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const baseUrl = "https://www.multica.ai";
|
|
|
|
return [
|
|
{
|
|
url: baseUrl,
|
|
lastModified: new Date("2026-04-01"),
|
|
changeFrequency: "weekly",
|
|
priority: 1.0,
|
|
},
|
|
{
|
|
url: `${baseUrl}/about`,
|
|
lastModified: new Date("2026-04-01"),
|
|
changeFrequency: "monthly",
|
|
priority: 0.7,
|
|
},
|
|
{
|
|
url: `${baseUrl}/changelog`,
|
|
lastModified: new Date("2026-04-01"),
|
|
changeFrequency: "weekly",
|
|
priority: 0.6,
|
|
},
|
|
];
|
|
}
|