feat: add an option to configure Sanity authentication token
This commit is contained in:
parent
2300a113b2
commit
4856d6b44d
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ EMAIL_CONTACT_ADDRESS=
|
||||||
EMAIL_CONTACT_DEST=
|
EMAIL_CONTACT_DEST=
|
||||||
|
|
||||||
NEXT_PUBLIC_SANITY_PROJECT_ID=
|
NEXT_PUBLIC_SANITY_PROJECT_ID=
|
||||||
|
SANITY_AUTH_TOKEN=
|
||||||
SANITY_WEBHOOK_SECRET=
|
SANITY_WEBHOOK_SECRET=
|
||||||
|
|
||||||
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=
|
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=
|
||||||
|
|
|
@ -5,6 +5,7 @@ const config = {
|
||||||
apiVersion: "2023-08-08",
|
apiVersion: "2023-08-08",
|
||||||
dataset: "production",
|
dataset: "production",
|
||||||
projectId: `${process.env.NEXT_PUBLIC_SANITY_PROJECT_ID}`,
|
projectId: `${process.env.NEXT_PUBLIC_SANITY_PROJECT_ID}`,
|
||||||
|
token: `${process.env.SANITY_AUTH_TOKEN}`,
|
||||||
useCdn: false // ensure fresh data
|
useCdn: false // ensure fresh data
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue