rsnext/examples/cms-sanity/components
Cody Olsen 0c7217ba8f
docs(examples): use vercel integration in cms-sanity (#39323)
## Feature

- [x] Documentation added

## Documentation / Examples

- [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)

This PR updates the cms-sanity example to:
- Deploy to Vercel with the [Sanity Vercel Integration](https://www.sanity.io/docs/vercel-integration) by default.
- You can still opt-out of using the Sanity Vercel Integration, clicking `You can also set up manually` gives you all the information you need.
- The blog itself is updated so it's much more resilient to missing data, and is setup to set `revalidate: 60` until you have a On-demand Revalidation webhook setup.
- Preview Mode is now enabled on the frontpage as well.
- The Sanity client setup, and webhook validation, are updated to follow our current best practices.
2022-08-12 03:56:49 +00:00
..
alert.js Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
avatar.js docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
container.js Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00
cover-image.js docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
date.js docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
footer.js Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
header.js Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00
hero-post.js docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
intro.js Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00
layout.js Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00
markdown-styles.module.css Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00
meta.js Improve sanity.io example (#18227) 2021-02-08 21:54:01 -06:00
more-stories.js docs: update CMS examples to use the new tw grid gaps (#34917) 2022-03-01 07:47:28 -06:00
post-body.js docs: update cms-sanity example (#34898) 2022-03-01 23:42:00 +00:00
post-header.js docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
post-preview.js docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
post-title.js Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00
section-separator.js Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00