diff --git a/packages/@sanity/cli/src/types.ts b/packages/@sanity/cli/src/types.ts index 294f849a6651..437835fc3ee6 100644 --- a/packages/@sanity/cli/src/types.ts +++ b/packages/@sanity/cli/src/types.ts @@ -311,7 +311,7 @@ export interface CliConfig { vite?: UserViteConfig - enableAutoUpdates?: boolean + unstable_enableAutoUpdates?: boolean } export type UserViteConfig = diff --git a/packages/sanity/src/_internal/cli/actions/build/buildAction.ts b/packages/sanity/src/_internal/cli/actions/build/buildAction.ts index b86db1ecba49..afb059763eaa 100644 --- a/packages/sanity/src/_internal/cli/actions/build/buildAction.ts +++ b/packages/sanity/src/_internal/cli/actions/build/buildAction.ts @@ -79,7 +79,7 @@ export default async function buildSanityStudio( const enableAutoUpdates = flags['enable-auto-updates'] || - (cliConfig && 'enableAutoUpdates' in cliConfig && cliConfig.enableAutoUpdates) + (cliConfig && 'unstable_enableAutoUpdates' in cliConfig && cliConfig.unstable_enableAutoUpdates) if (enableAutoUpdates) { output.print(`${info} Building with auto-updates enabled`)