sanity-io / next-sanity

Sanity.io toolkit for Next.js

Home Page:https://www.sanity.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZeroWidthSpace in text

rodzerjohn opened this issue · comments

Hello,

I've encountered a strange bug where every text retrieved from a Groq query in Sanity CMS contains zero-width spaces. What could be causing this issue?

Thanks in advance!

image

Hi, this is how stega is implemented, for integrating with Vercel Visual Editing and Sanity Presentation.
Somewhere in your code you probably have a client configuration like this:

import {createClient} from '@sanity/client'

const client = createClient({
  // ... other options
  stega: {
    enabled: true, // <- this is what adds the hidden characters
    studioUrl: '/studio'
  }
})

Hi, this is how stega is implemented, for integrating with Vercel Visual Editing and Sanity Presentation. Somewhere in your code you probably have a client configuration like this:

import {createClient} from '@sanity/client'

const client = createClient({
  // ... other options
  stega: {
    enabled: true, // <- this is what adds the hidden characters
    studioUrl: '/studio'
  }
})

Thank you