-
Notifications
You must be signed in to change notification settings - Fork 432
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(cli): prepare nextjs starter template for live mode #7633
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Oct 29, 2024 12:03 AM (UTC) ✅ All Tests Passed -- expand for details
|
⚡️ Editor Performance ReportUpdated Tue, 29 Oct 2024 00:05:38 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
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.
Reading the next-sanity docs, it seems like the live content API might require vX to be used - are you okay leaving that up to the env file? Also, are we leaving the SanityLive
component up to the user to implement "if they want it"?
packages/@sanity/cli/src/actions/init-project/templates/nextjs/index.ts
Outdated
Show resolved
Hide resolved
…/index.ts Add explanation to live.ts Co-authored-by: Espen Hovlandsdal <[email protected]>
Good call. I've updated the And yeah all these helper files are designed to be implemented by the user, they're not written into the Next.js app anywhere. |
* next: (25 commits) fix(deps): update dependency @sanity/ui to ^2.8.16 (#7723) fix(deps): update dependency @sanity/ui to ^2.8.16 (#7722) chore(lockfile): update dependency @sanity/asset-utils to v2.0.7 (#7721) fix(deps): update dependency @sanity/ui to ^2.8.15 (#7717) fix(deps): update dependency @sanity/ui to ^2.8.15 (#7718) fix(deps): Update babel monorepo (#7719) chore(deps): update typescript-tooling (#7681) chore(deps): bump react-compiler linter (#7715) fix(deps): Update dev-non-major (#7708) fix(deps): update dependency react-rx to ^4.1.0 (#7714) fix(deps): update dependency @portabletext/editor to ^1.2.0 (#7709) chore(deps): update dependency lerna to ^8.1.9 (#7711) fix(deps): update dependency @sanity/ui to ^2.8.14 (#7713) chore: telemetry definition files are owned by @data-eng (#7703) fix(deps): update dependency react-rx to ^4.0.1 (#7712) fix(deps): Update dev-non-major (#7693) chore(deps): update dependency @vitejs/plugin-react to ^4.3.3 (#7688) fix(deps): update dependency @sanity/ui to ^2.8.13 (#7694) fix(deps): update dependency @portabletext/editor to ^1.1.11 (#7667) feat(cli): prepare nextjs starter template for live mode (#7633) ...
Co-authored-by: Espen Hovlandsdal <[email protected]>
Description
Adds configuration file for live fetches when initializing a new Studio inside a Next.js application. Not used by the Studio, but designed for use in the Next.js application.
Do not release until the next version of next-sanity is available.
Notes for release
sanityFetch
andSanityLive
preconfigured for Studios initialized inside a Next.js application