Dev Helpers
← Back

Canonical workshop URL

Place this file at app/workshop/page.tsx in an App Router project. Replace example metadata with your production details.

Open this example in the interactive library

Source code

// app/workshop/page.tsx

import type { Metadata } from "next";

export const metadata: Metadata = {
  title: "Workshop schedule",
  alternates: { canonical: "https://example.com/workshop" },
};

export default function CanonicalWorkshopURL() {
  return (
    <main>
      <h1>Workshop schedule</h1>
      <time dateTime="2027-06-12">June 12</time>
    </main>
  );
}