An example of a Sanity powered frontend using Next.js
This is an example frontend for the movie dataset using Sanity and Next.js. It is powered by Sanity and built with Next.js. It requires Node.js version 8.0 or greater to be installed on the system.
To install the theme, follow these steps:
npm install
lib/sanity.js
and change the following lines:dataset: 'your-dataset-name',
projectId: 'your-project-id'
'your-dataset-name'
with the name of your dataset and 'your-project-id'
with the ID of your project, which can be found in the header of the management page for your project.localhost:3000
in your CORS Origins settings. This can be done through the management page under settings or by running the following command in the project folder you set up with sanity init
:sanity cors add http://localhost:3000
npm run dev
This example Sanity + Next.js frontend provides a powerful and easy-to-use solution for managing and displaying a movie dataset. With features like Sanity integration, Next.js support, and easy installation, it is a great choice for building movie-related websites or applications.