Dev Helpers
← Back

Draft preview indexing

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: "Draft preview",
  robots: { index: false, follow: false },
};

export default function DraftPreviewIndexing() {
  return (
    <main>
      <h1>Draft preview</h1>
      <p>Editorial work in progress.</p>
    </main>
  );
}