feat: add an option to configure Sanity authentication token

This commit is contained in:
Dorian Niemiec 2024-09-07 16:12:26 +02:00
parent 2300a113b2
commit 4856d6b44d
2 changed files with 2 additions and 0 deletions

View file

@ -18,6 +18,7 @@ EMAIL_CONTACT_ADDRESS=
EMAIL_CONTACT_DEST=
NEXT_PUBLIC_SANITY_PROJECT_ID=
SANITY_AUTH_TOKEN=
SANITY_WEBHOOK_SECRET=
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=

View file

@ -5,6 +5,7 @@ const config = {
apiVersion: "2023-08-08",
dataset: "production",
projectId: `${process.env.NEXT_PUBLIC_SANITY_PROJECT_ID}`,
token: `${process.env.SANITY_AUTH_TOKEN}`,
useCdn: false // ensure fresh data
};