Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintStudioConfigBeta

    Configuration for a Studio resource.

    interface BlueprintStudioConfig {
        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;
        version?: string;
        visibility?: "default" | "unlisted" | "disabled";
        vite?: UserViteConfig;
        workspaces?: StudioWorkspace[];
    }

    Hierarchy

    Index

    Properties

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

    Auto update settings for the studio. Defaults to {enabled: true}.

    Type declaration

    • Optionalenabled?: boolean

      Whether auto updates are enabled for the studio. Defaults to true.

    • 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])?$.

    Defaults to the name of the resource. Set slug explicitly if the resource name is not a valid hostname.

    sourceMap?: boolean

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

    title?: string

    Title for the studio. Defaults to the name of the resource.

    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.