-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: add Content Source Map functionality #284
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
New dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No new dependency issues detected in pull request Bot CommandsTo ignore an alert, reply with a comment starting with Pull request alert summary
📊 Modified Dependency Overview:
|
📝 Changed routes:
And 3 other routes: Commit 71aeabdc19c574fefac401f7a420f40ee1edd7f0 (https://nextjs-blog-cms-sanity-v3-without-praygalqz.sanity.build). |
/** | ||
* LiveStoreProvider requires Content Source Maps in order to preview in real-time, as you type, changes as they happen. | ||
* If Visual Editing isn't used, and the amount of documents isn't in the tens of thousands then: | ||
* import {GroqStoreProvider} from 'next-sanity/preview-groq-store' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that after merging this PR, projects without visual editing enabled will have to make this change for live preview to work? Should this perhaps be called out in the readme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooops didn't realise this PR wasn't market as draft. I'm still working on this and trying to find a good way to switch between the modes. And find a good balance between a live preview that works for everyone, and a live preview that still works once visual editing is enabled 🙌
Setting the PR back to draft
@@ -19,3 +19,6 @@ export const useCdn = process.env.SANITY_REVALIDATE_SECRET | |||
// This is the document id used for the preview secret that's stored in your dataset. | |||
// The secret protects against unauthorized access to your draft content and have a lifetime of 60 minutes, to protect against bruteforcing. | |||
export const previewSecretId: `${string}.${string}` = 'preview.secret' | |||
|
|||
// THe route path to where the Studio is embedded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// THe route path to where the Studio is embedded | |
// The route path to where the Studio is embedded |
No description provided.