Skip to content

About

Iteam's public website (iteam.se) – Next.js + Sanity

Topics

Resources

Stars

3 stars

Watchers

4 watching

Forks

Latest commit

 

History

617 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iteam new website 2021

Vercel

Hi! This is Iteam's official website based on Next.JS and Sanity. Look around and if you find any issues or have suggestions, please feel free to file an issue or pull request.

Live preview

When you add a new page to sanity it's really nice to add live preview as well.

Client

If you want to add live preview to a [slug] page, you need to use getClient(preview) in getStaticProps and then usePreviewSubscription followed by filterDataToSingleItem.

To make it clearer that the user is in preview mode we use the ExitPreviewLink component in every page that live preview should show.

Studio

If you want to add live preview to a document type you will need to add .views to deskStructure and then do the same as above.

You might need to take a look in resolveProductionUrl as well.

Client

Client readme

Studio

Studio readme

About

Iteam's public website (iteam.se) – Next.js + Sanity

Topics

Resources

Stars

3 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages