Create your own .env.local
file with:
cp .env.example .env.local
Fill in the missing keys and run yarn install
to install the dependencies.
After the successful installation, run yarn dev
to spin up the application. http://localhost:3000
▪ cd /sanity, then: ▪ sanity docs to open the documentation in a browser ▪ sanity manage to open the project settings in a browser ▪ sanity help to explore the CLI manual ▪ sanity start to run your studio
Using the following plugin https://www.sanity.io/plugins/vercel-deploy please following instructions to setup deploy hooks
The following files are used to create endpoints so that sanity hooks can receive data for CMS events and index content from Sanity to Algolia.
- "/pages/api/all-algolia.js" First time indexing (only needs to be run once on fresh index)
- "/pages/api/update-algolia.js" Needs to be run after each build for document update, create and delete.
See https://www.sanity.io/plugins/sanity-algolia for more information and direct link to setup hook within sanity account.