Skip to content

Commit 4e6f186

Browse files
author
Alex Patterson
committed
remove stega completely
1 parent f13f6f8 commit 4e6f186

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎sanity/lib/fetch.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ export async function sanityFetch<QueryResponse>({
1919
* The Sanity Presentation Tool will enable Draft Mode when loading up the live preview, and we use it as a signal for when to embed source maps.
2020
* When outside of the Sanity Studio we also support the Vercel Toolbar Visual Editing feature, which is only enabled in production when it's a Vercel Preview Deployment.
2121
*/
22-
stega = perspective === "previewDrafts" ||
23-
process.env.VERCEL_ENV === "preview",
22+
// stega = perspective === "previewDrafts" ||
23+
// process.env.VERCEL_ENV === "preview",
24+
stega = false,
2425
}: {
2526
query: string;
2627
params?: QueryParams;
@@ -29,7 +30,7 @@ export async function sanityFetch<QueryResponse>({
2930
}) {
3031
if (perspective === "previewDrafts") {
3132
return client.fetch<QueryResponse>(query, params, {
32-
stega,
33+
stega: false,
3334
perspective: "previewDrafts",
3435
// The token is required to fetch draft content
3536
token,
@@ -40,7 +41,7 @@ export async function sanityFetch<QueryResponse>({
4041
});
4142
}
4243
return client.fetch<QueryResponse>(query, params, {
43-
stega,
44+
stega: false,
4445
perspective: "published",
4546
// The `published` perspective is available on the API CDN
4647
useCdn: true,

0 commit comments

Comments
 (0)