Skip to content

Commit 38ff2a2

Browse files
(fix) update the api version used by defualt (#157)
1 parent c228468 commit 38ff2a2

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

frontend/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NEXT_PUBLIC_SANITY_PROJECT_ID="<paste your project here>" # Required - The ID of your Sanity project
22
NEXT_PUBLIC_SANITY_DATASET="production" # Required - The dataset of your Sanity project
3-
NEXT_PUBLIC_SANITY_API_VERSION="2024-10-28" # Optional - The API version provided to the Sanity Client
3+
NEXT_PUBLIC_SANITY_API_VERSION="2025-09-25" # Optional - The API version provided to the Sanity Client
44
NEXT_PUBLIC_SANITY_STUDIO_URL="" #Optional, defaults to http://localhost:3333
55
SANITY_API_READ_TOKEN="<paste your token here>" # Required - The read token for your Sanity project

frontend/sanity/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const projectId = assertValue(
2424
/**
2525
* see https://www.sanity.io/docs/api-versioning for how versioning works
2626
*/
27-
export const apiVersion = process.env.NEXT_PUBLIC_SANITY_API_VERSION || '2024-10-28'
27+
export const apiVersion = process.env.NEXT_PUBLIC_SANITY_API_VERSION || '2025-09-25'
2828

2929
/**
3030
* Used to configure edit intent links, for Presentation Mode, as well as to configure where the Studio is mounted in the router.

package-lock.json

Lines changed: 1 addition & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)