diff --git a/packages/@sanity/cli/src/actions/init-project/templates/nextjs/index.ts b/packages/@sanity/cli/src/actions/init-project/templates/nextjs/index.ts index 112142ab879..b0c9b407afd 100644 --- a/packages/@sanity/cli/src/actions/init-project/templates/nextjs/index.ts +++ b/packages/@sanity/cli/src/actions/init-project/templates/nextjs/index.ts @@ -165,6 +165,9 @@ export const client = createClient({ }) ` +// Importing and querying through `sanityFetch` from this file will make data automatically stay up to date with any changes. +// Before using it, import and render `` in your layout - see +// https://github.com/sanity-io/next-sanity#live-content-api for more information. const live = `import { defineLive } from "next-sanity"; import { client } from './client'