Sanity Library Reference Docs
    Preparing search index...

    Interface ConfigContext

    interface ConfigContext {
        currentUser: CurrentUser;
        dataset: string;
        getClient: (options: SourceClientOptions) => SanityClient;
        i18n: LocaleSource;
        projectId: string;
        schema: Schema;
    }

    Hierarchy (View Summary)

    Index

    Properties

    currentUser: CurrentUser

    The current user or null if not authenticated.

    dataset: string

    The name of the dataset.

    getClient: (options: SourceClientOptions) => SanityClient

    A function that returns a Sanity client with the specified options.

    Localization resources

    projectId: string

    The ID of the project.

    schema: Schema

    The schema for this source.