Files
Cody OlsenandGitHub 41019c2314 Update Sanity example for App Router (#63045)
This PR updates the `cms-sanity` example to use:
- App Router
- TypeScript
- Sanity Studio v3 instead of v2
- Embeds the Studio inside the next app on the `/studio` route.
- ISR / Data Cache (revalidations through `revalidatePath` while in Live
Visual Editing, time-based to match the Sanity API CDN in production).
- Support Vercel Visual Editing out of the box.
- The new `next-sanity/image` component.
- Vercel Speed Insights.
- The Sanity Presentation Tool for live content previews.
- Sanity Portable Text setup to fully support `@tailwindcss/typography`.
- [AI Assist](https://www.sanity.io/docs/ai-assist)
  - Auto fill in `alt` text on images.
  - Preset prompts for content creation
2024-03-10 19:49:18 -07:00

60 lines
1.2 KiB
TypeScript

/**
* Demo data used as placeholders and initial values for the blog
*/
export const title = "Blog.";
export const description = [
{
_key: "9f1a629887fd",
_type: "block",
children: [
{
_key: "4a58edd077880",
_type: "span",
marks: [],
text: "A statically generated blog example using ",
},
{
_key: "4a58edd077881",
_type: "span",
marks: ["ec5b66c9b1e0"],
text: "Next.js",
},
{
_key: "4a58edd077882",
_type: "span",
marks: [],
text: " and ",
},
{
_key: "4a58edd077883",
_type: "span",
marks: ["1f8991913ea8"],
text: "Sanity",
},
{
_key: "4a58edd077884",
_type: "span",
marks: [],
text: ".",
},
],
markDefs: [
{
_key: "ec5b66c9b1e0",
_type: "link",
href: "https://nextjs.org/",
},
{
_key: "1f8991913ea8",
_type: "link",
href: "https://sanity.io/",
},
],
style: "normal",
},
];
export const ogImageTitle = "A Next.js Blog with a Native Authoring Experience";