
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeBased on the symptoms you're describing and the timing ("since yesterday/today"), this is almost certainly related to the recent API version 2025-02-19 change that Sanity deployed on February 24, 2025. This is a breaking change that switched the default perspective from raw to published.
The intermittent missing data you're seeing (especially with media/asset references) is likely because:
published - Your queries are now only returning published documents by default, not draftspublished perspectivestale-while-revalidate, so you're seeing cached responses with the old raw perspective mixed with fresh responses using the new published perspectiveUpdate your Sanity client configuration to explicitly use the raw or previewDrafts perspective to restore the previous behavior:
import {createClient} from '@sanity/client'
const client = createClient({
projectId: 'your-project-id',
dataset: 'your-dataset',
useCdn: true,
apiVersion: '2024-01-01', // or your current version
perspective: 'raw', // Add this to get both published and draft content
})Or if you're using the Next.js integration, you can set it in your queries:
const data = await client.fetch(query, params, {
perspective: 'raw'
})You have two options:
perspective: 'raw' if you need both draft and published contentperspective: 'published' (the new default)The API version 2025-02-19 changelog explains this breaking change. The default perspective switch means queries now only return published documents unless you explicitly specify otherwise. This was done to support the new Content Releases feature, but it affects all queries made without an explicit perspective parameter.
The timing of "since yesterday" aligns perfectly with this deployment, and the intermittent nature is consistent with CDN cache behavior during the transition period. You can also check status.sanity.io for any ongoing incidents, though this appears to be a planned breaking change rather than an outage.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store