Skip to content

Commit

Permalink
Update packages/@sanity/cli/src/actions/init-project/templates/nextjs…
Browse files Browse the repository at this point in the history
…/index.ts


Add explanation to live.ts

Co-authored-by: Espen Hovlandsdal <[email protected]>
  • Loading branch information
SimeonGriggs and rexxars authored Oct 28, 2024
1 parent 50ba0f2 commit ce54d0e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<SanityLive />` 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'
Expand Down

0 comments on commit ce54d0e

Please sign in to comment.