Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update default API version to current date dynamically
The commit dynamically updates the `defaultApiVersion` in Sanity's client configuration, calculated based on the current date. This modification is intended to ensure that the most relevant data is always fetched. Changes were also made to handle the case where no token is provided, removing the need for a hard assertion and setting the headers correspondingly.
- Loading branch information