Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
fix: canonical url, redirects
kapishdima5b14eb1c314a
diff --git a/app/(home)/changelog/page.tsx b/app/(home)/changelog/page.tsxindex 8798d492..7d9a179e 100644--- a/app/(home)/changelog/page.tsx+++ b/app/(home)/changelog/page.tsx@@ -17,6 +17,7 @@ const DESCRIPTION =export const metadata: Metadata = {title: "Changelog",description: DESCRIPTION,+ alternates: { canonical: "/changelog" },openGraph: {type: "website",url: "/changelog",diff --git a/app/(home)/changelog/video/page.tsx b/app/(home)/changelog/video/page.tsxindex 3103da74..0ea7a7cf 100644--- a/app/(home)/changelog/video/page.tsx+++ b/app/(home)/changelog/video/page.tsx@@ -31,6 +31,7 @@ const shareImage = entries[0]?.videoPoster ?? "/hero.png";export const metadata: Metadata = {title: "Changelog in video",description: DESCRIPTION,+ alternates: { canonical: "/changelog/video" },openGraph: {type: "website",url: "/changelog/video",diff --git a/app/(home)/page.tsx b/app/(home)/page.tsxindex ce0f00e5..3b034e5f 100644--- a/app/(home)/page.tsx+++ b/app/(home)/page.tsx@@ -1,3 +1,4 @@+import type { Metadata } from "next";import { FinalCTA } from "./components/sections/final-cta";import { GetStarted } from "./components/sections/get-started";import { Hero } from "./components/sections/hero";@@ -6,6 +7,10 @@ import { Testimonials } from "./components/sections/testimonials";import { WhatsInside } from "./components/sections/whats-inside";import { WhyRemocn } from "./components/sections/why-remocn";+export const metadata: Metadata = {+ alternates: { canonical: "/" },+};+export default function Page() {return (<>diff --git a/app/(home)/showcases/[slug]/page.tsx b/app/(home)/showcases/[slug]/page.tsxindex 26d3685e..471dc7c7 100644--- a/app/(home)/showcases/[slug]/page.tsx+++ b/app/(home)/showcases/[slug]/page.tsx@@ -27,6 +27,7 @@ export async function generateMetadata({return {title: showcase.title,+ alternates: { canonical: `/showcases/${showcase.slug}` },openGraph: {type: "article",url: `/showcases/${showcase.slug}`,diff --git a/app/(home)/showcases/page.tsx b/app/(home)/showcases/page.tsxindex 068d0dc2..9f330b24 100644--- a/app/(home)/showcases/page.tsx+++ b/app/(home)/showcases/page.tsx@@ -13,6 +13,7 @@ export async function generateMetadata(): Promise<Metadata> {return {title: "Showcases",description: DESCRIPTION,+ alternates: { canonical: "/showcases" },openGraph: {type: "website",url: "/showcases",diff --git a/app/(home)/sponsors/page.tsx b/app/(home)/sponsors/page.tsxindex 5fba415c..96958c2d 100644--- a/app/(home)/sponsors/page.tsx+++ b/app/(home)/sponsors/page.tsx@@ -1,7 +1,34 @@+import type { Metadata } from "next";import { Hero } from "./components/sections/hero";import { Tiers } from "./components/sections/tiers";import { WallOfLove } from "./components/sections/wall-of-love";+const DESCRIPTION =+ "Support remocn and keep the components free and open source. Back the project monthly or one-time and get your logo in front of the community.";++export const metadata: Metadata = {+ title: "Sponsors",+ description: DESCRIPTION,+ alternates: { canonical: "/sponsors" },+ openGraph: {+ type: "website",+ url: "/sponsors",+ siteName: "Remocn",+ title: "Sponsors · remocn",+ description: DESCRIPTION,+ locale: "en_US",+ images: [+ { url: "/hero.png", width: 1200, height: 675, alt: "Sponsors · remocn" },+ ],+ },+ twitter: {+ card: "summary_large_image",+ title: "Sponsors · remocn",+ description: DESCRIPTION,+ images: ["/hero.png"],+ },+};+export default function SponsorsPage() {return (<>diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsxindex f6574daf..2550a02c 100644--- a/app/docs/[[...slug]]/page.tsx+++ b/app/docs/[[...slug]]/page.tsx@@ -52,12 +52,17 @@ export async function generateMetadata(props: {const data = page.data;const slug = params.slug ?? [];if (slug.length === 0) {- return { title: data.title, description: data.description };+ return {+ title: data.title,+ description: data.description,+ alternates: { canonical: page.url },+ };}const ogUrl = `/og/docs/${slug.join("/")}`;return {title: data.title,description: data.description,+ alternates: { canonical: page.url },openGraph: {title: data.title,description: data.description,diff --git a/next.config.ts b/next.config.tsindex 96bd3894..818ce230 100644--- a/next.config.ts+++ b/next.config.ts@@ -23,6 +23,18 @@ const nextConfig: NextConfig = {// Serve raw Markdown for AI agents: `/docs/<slug>.md` -> app/llms.md route.return [{ source: "/docs/:path*.md", destination: "/llms.md/:path*" }];},+ async redirects() {+ // Collapse the www host into the canonical apex so Google indexes a single+ // origin. Traefik routes both hosts to this app; 308 preserves the path.+ return [+ {+ source: "/:path*",+ has: [{ type: "host", value: "www.remocn.dev" }],+ destination: "https://remocn.dev/:path*",+ permanent: true,+ },+ ];+ },};export default withMDX(nextConfig);