746 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
85
views
Clerk + Sanity integration issue w/ Next.js
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 ...
2
votes
0
answers
46
views
How do I get proper type hinting for input component in Sanity Studio?
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 { ...
0
votes
1
answer
56
views
How to expand the width of the post in the Sanity Studio structure tab?
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 ...
1
vote
0
answers
44
views
Sanity Studio: Failed to resolve import @/*
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
...
0
votes
0
answers
24
views
Sanity RichTextEditor for block content is disabled and cursor pointer always moves to the left most on every type
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 ...
0
votes
1
answer
125
views
Sanity query Filter Post by Categories
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 == &...
0
votes
0
answers
161
views
Export next.js site statically
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) ...
0
votes
1
answer
147
views
How to display Portable Text block content images in SvelteKit
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 ...
0
votes
0
answers
50
views
Sanity.io: Unable to resolve image URL from source (undefined)
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 ...
0
votes
0
answers
32
views
NextJs solution for serverless function conversions to HLS using Sanity CDN
I am building a custom site using Next 14, React Three Fiber, and Sanity as a CMS/CDN. Sanity's headless CMS handles pretty much everything needed for all content media types except for video. It can ...
0
votes
0
answers
115
views
How to get TypeScript paths working in Sanity Studio?
Trying to get TypeScript paths working in a Sanity Studio project but for some reason I'm getting errors:
[vite] Internal server error: Failed to resolve import "@utils/index" from "...
0
votes
1
answer
94
views
Sanity Blog fetching worked on local but failed on Cloudflare production
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 ...
0
votes
1
answer
102
views
Profile and account undefined inside jwt callback function for next-auth
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"
...
0
votes
1
answer
77
views
Not able to access value, _value or _rawValue fields of a RefImpl from a sanity query in nuxt typescript
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. ...
1
vote
0
answers
27
views
Issue displaying content from Sanity cms
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.
...