rsnext/examples/cms-sanity/pages
Henrik Wenz 64a3697d05
[Docs] Update examples to favour functional _document (#39871)
## Changes

- Migrate class based `_document`s to functional documents 
- Removed `_document.js` where default
- Removed `MyDocument.getInitialProps` where default

## Motivation

This removes some boilerplate and prepares examples for server components.

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
2022-08-23 18:52:31 +00:00
..
api docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
posts docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00
_app.js Add CMS example for Sanity (#10907) 2020-03-18 18:39:37 -05:00
_document.js [Docs] Update examples to favour functional _document (#39871) 2022-08-23 18:52:31 +00:00
index.js docs(examples): use vercel integration in cms-sanity (#39323) 2022-08-12 03:56:49 +00:00