synthetix-website icon indicating copy to clipboard operation
synthetix-website copied to clipboard

Synthetix website powered by next.js + typescript

Synthetix website

Getting started

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

Sanity

▪ 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

Sanity Publish Webhooks

Using the following plugin https://www.sanity.io/plugins/vercel-deploy please following instructions to setup deploy hooks

Sanity Algolia Webhooks

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.