Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintStudioResourceBeta

    Represents a Studio resource.

    This feature is subject to breaking changes.

    interface BlueprintStudioResource {
        autoUpdates: { enabled: boolean; version?: string };
        icon?: string;
        mfManifest?: Record<string, unknown>;
        minify?: boolean;
        name: string;
        project?: string;
        reactCompiler?: boolean;
        root: string;
        schemaInputs?: WorkspaceSchemaInput[];
        slug: string;
        sourceMap?: boolean;
        title: string;
        type: "sanity.studio";
        version?: string;
        visibility?: "default" | "unlisted" | "disabled";
        vite?: UserViteConfig;
        workspaces?: StudioWorkspace[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    autoUpdates: { enabled: boolean; version?: string }

    Auto update settings for the studio.

    Type declaration

    • enabled: boolean

      Whether auto updates are enabled for the studio

    • Optionalversion?: string

      What "version"/"channel" to use for auto updates

    icon?: string

    Path to the icon image, relative to root. Uploaded on every deploy; omitting it removes the icon. PNG, JPEG, BMP, GIF, TIFF, SVG, WebP, HEIF or AVIF, up to 5 MB.

    mfManifest?: Record<string, unknown>

    Module federation manifest

    minify?: boolean

    Whether or not to minify the source code. Defaults to true.

    name: string

    The name of the resource. Unique within the blueprint. e.g. 'sync-webhook'

    project?: string

    The project ID of the project that contains your Studio.

    The project attribute must be defined if your blueprint is scoped to an organization.

    reactCompiler?: boolean

    Whether or not to configure the reactCompiler. Defaults to false.

    root: string

    The relative location of the studio directory.

    schemaInputs?: WorkspaceSchemaInput[]

    Schema inputs extracted from the studio's schema definition.

    slug: string

    The slug to be used in the studio hostname. Must match ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$.

    sourceMap?: boolean

    Whether or not to generate source maps. Defaults to false.

    title: string

    Title for the studio.

    type: "sanity.studio"

    The type of the resource. e.g. 'sanity.project.webhook'

    version?: string

    The local version of sanity at deployment. Populated during deployment.

    visibility?: "default" | "unlisted" | "disabled"

    Dashboard visibility

    Custom Vite configuration for the Studio so it can be changed and extended. Install vite to dev dependencies to get detailed type information.

    workspaces?: StudioWorkspace[]

    Workspaces extracted from the studio's configuration.