SimeonGriggs / sanity-nextjs-preview

Sanity Studio Visual Editing examples for Next.js 14 App + Pages routers
https://sanity-nextjs-preview-two.vercel.app
82 stars 19 forks source link

stega.studioUrl must be defined #19

Open glauber-sampaio opened 8 months ago

glauber-sampaio commented 8 months ago

Hi there, I’m following all the steps on this article and it worked until the Configure Presentation part.

When I access the /studio/presentation page it shows this:

image

The error behind is this:

image

My sanity/client.ts is exactly like in the official repo:

export const client = createClient({
    apiVersion,
    dataset,
    projectId,
    useCdn,
    perspective: "published",
    stega: {
        enabled: false,
        studioUrl: "/studio",
    },
});

I haven’t found any resolution to this problem, so I’m assuming it’s new