Skip to main content
Best practices
0 votes
0 replies
46 views

I am using sanity typegen with Next.js and I have localized fields in my Sanity schema. In my GROQ queries, I use a $lang variable to pick the correct translation. While the query works perfectly at ...
Jakub Hopciaś's user avatar
0 votes
0 answers
34 views

I just setup Sanity within my project, everything is default and I've added the env variables: NEXT_PUBLIC_SANITY_PROJECT_ID and NEXT_PUBLIC_SANITY_DATASET, which I made sure they correspond to the ...
Caio's user avatar
  • 324
0 votes
1 answer
100 views

Using Next.js (15.2.4), Clerk Auth, and trying to integrate Sanity as a CMS into the application. After installing Sanity and hitting /studio, this error appears: Error: Clerk: auth() was called, but ...
skywalkerSam's user avatar
2 votes
0 answers
56 views

As the title suggests, I'm making a custom Input component for example, for a object of type productFilters, like: import { defineType, defineField } from "sanity" import { ...
tomsseisums's user avatar
  • 13.5k
0 votes
1 answer
82 views

How to expand the width of the post in the Sanity Studio structure tab, like pictured below? Github copilot is suggesting adding views([S.view.form().options({width: 'full'})]) but options isn't a ...
Clyde D'Souza's user avatar
0 votes
0 answers
56 views

I use sanity cms studio and i have defined paths @ for src folder but I'm getting [plugin:vite:import-analysis] failed to resolve import I have defined the alias in both typescript and sanity cli ...
Taste of Leaving's user avatar
0 votes
0 answers
26 views

I have implementing blockcontent for post and the text editor is disabled. Tried degrading the sanity and react version but nothing helped. Disabled TextEditor Below is the BlockContent type in sanity ...
upendra shrestha's user avatar
0 votes
1 answer
156 views

I'm new using Sanity and I'm trying to filter my sanity studio posts by category, I've been looking for answers and trying different queries, but this is the only one that has worked ` *[_type == &...
Jeene Simon's user avatar
0 votes
0 answers
291 views

I have a simple restaurant website that uses next.js and sanity.io client to fetch the data. I want to export it statically (to html+css+js files) so that I won't need to use a container (or Vercel) ...
ham222's user avatar
  • 1
0 votes
1 answer
174 views

I'm trying to render a blog post from Sanity Studio in my SvelteKit project. Currently, all of the text etc is being displayed, but images within the block content aren't. Below is what I have tried ...
user30014273's user avatar
0 votes
0 answers
57 views

I was fetching my images in cart page. I wanted just 1 image so my code is below if you guys help me out my pleasure. import { urlFor } from "@/sanity/lib/image"; import ...
Muhammad Hasnain's user avatar
0 votes
1 answer
122 views

UPDATE: The problem is solved! I have tried using NextJS version 15.1.6 with next-sanity version 9.9.0, also don't use any API calls with export const runtime = 'edge' If there are problems with your ...
Andrew Nguyen's user avatar
0 votes
1 answer
107 views

I'm having an issue defining my jwt callback. I have this auth.ts file import NextAuth, { Profile, User, Account, Session } from "next-auth"; import { JWT } from "next-auth/jwt" ...
Luca Federzoni's user avatar
0 votes
1 answer
91 views

I define my sanity query like this. I inspected the network tab, and the response was correct. The first object printed is a RefImpl. It contains the correct values when I inspect it in the console. ...
Ola Hagen Bendixen's user avatar
1 vote
0 answers
33 views

I have a react website that's connected to Sanity for a CMS. Locally, everything works fine and the content loads in. When I run a build and upload to godaddy, the Sanity content isn't displaying. ...
Adam Simonelli's user avatar

15 30 50 per page
1
2 3 4 5
50