Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
chore: remove need for sanity client in revalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Oct 14, 2024
1 parent e19745e commit 9481329
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/sanity-cms/api/revalidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import logger from '../lib/logger';
import { safeTry } from '@session/util-js/try';
import type { PageSchemaType } from '../schemas/page';
import type { PostSchemaType } from '../schemas/post';
import type { SessionSanityClient } from '../lib/client';

type RssGeneratorConfig = {
/** The CMS content type that the generator should be run for.*/
Expand All @@ -20,7 +19,6 @@ type RssGeneratorConfig = {
type CreateRevalidateHandlerOptions = {
/** The secret used to verify the webhook request. */
revalidateSecret: string;
client: SessionSanityClient;
schemaUrls: Record<string, string>;
/** An array of RSS generator configurations. {@link RssGeneratorConfig} */
rssGenerators?: Array<RssGeneratorConfig>;
Expand Down Expand Up @@ -55,7 +53,6 @@ type CreateRevalidateHandlerOptions = {
*/
export const createRevalidateHandler = ({
revalidateSecret,
client,
schemaUrls,
rssGenerators,
}: CreateRevalidateHandlerOptions) => {
Expand Down

0 comments on commit 9481329

Please sign in to comment.