Synthetixio / synthetix-website

Synthetix website powered by next.js + typescript

Home Page:https://synthetix.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Synthetix website powered by next.js + typescript

https://synthetix.io


Languages

Language:TypeScript 98.4%Language:JavaScript 1.5%Language:HTML 0.0%