sanity 3.80.0 → 3.80.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,11 +6,9 @@ function _interopDefaultCompat(e) {
6
6
  var chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk), yargs__default = /* @__PURE__ */ _interopDefaultCompat(yargs);
7
7
  function parseCliFlags(args) {
8
8
  return yargs__default.default(helpers.hideBin(args.argv || process.argv).slice(1)).options("host", {
9
- type: "string",
10
- default: "localhost"
9
+ type: "string"
11
10
  }).options("port", {
12
- type: "number",
13
- default: 3333
11
+ type: "number"
14
12
  }).options("load-in-dashboard", {
15
13
  type: "boolean",
16
14
  default: !0
@@ -1 +1 @@
1
- {"version":3,"file":"devAction.js","sources":["../../src/_internal/cli/actions/app/devAction.ts"],"sourcesContent":["import {type CliCommandArguments, type CliCommandContext} from '@sanity/cli'\nimport chalk from 'chalk'\nimport {hideBin} from 'yargs/helpers'\nimport yargs from 'yargs/yargs'\n\nimport {startDevServer} from '../../server/devServer'\nimport {gracefulServerDeath} from '../../util/servers'\nimport {getCoreAppURL, getDevServerConfig, type StartDevServerCommandFlags} from '../dev/devAction'\n\nfunction parseCliFlags(args: {argv?: string[]}) {\n // Using slice(1) to remove the first argument, which is the command `dev` path to the CLI\n return yargs(hideBin(args.argv || process.argv).slice(1))\n .options('host', {type: 'string', default: 'localhost'})\n .options('port', {type: 'number', default: 3333})\n .options('load-in-dashboard', {type: 'boolean', default: true}).argv\n}\n\nexport default async function startAppDevServer(\n args: CliCommandArguments<StartDevServerCommandFlags>,\n context: CliCommandContext,\n): Promise<void> {\n const flags = await parseCliFlags(args)\n const {output, workDir, cliConfig} = context\n\n if (!flags.loadInDashboard) {\n output.warn(`Apps cannot run without the Sanity dashboard`)\n output.warn(`Starting dev server with the --load-in-dashboard flag set to true`)\n }\n\n let organizationId: string | undefined\n if (\n cliConfig &&\n '__experimental_appConfiguration' in cliConfig &&\n cliConfig.__experimental_appConfiguration?.organizationId\n ) {\n organizationId = cliConfig.__experimental_appConfiguration.organizationId\n }\n\n if (!organizationId) {\n output.error(`Apps require an organization ID (orgId) specified in your sanity.cli.ts file`)\n process.exit(1)\n }\n\n // Try to load CLI configuration from sanity.cli.(js|ts)\n const config = getDevServerConfig({\n flags,\n workDir,\n cliConfig,\n output,\n })\n\n try {\n const spinner = output.spinner('Starting dev server').start()\n await startDevServer({...config, skipStartLog: true, isApp: true})\n spinner.succeed()\n\n output.print(`Dev server started on port ${config.httpPort}`)\n output.print(`View your app in the Sanity dashboard here:`)\n output.print(\n chalk.blue(\n chalk.underline(\n getCoreAppURL({organizationId, httpHost: config.httpHost, httpPort: config.httpPort}),\n ),\n ),\n )\n } catch (err) {\n gracefulServerDeath('dev', config.httpHost, config.httpPort, err)\n }\n}\n"],"names":["parseCliFlags","args","yargs","hideBin","argv","process","slice","options","type","default","startAppDevServer","context","flags","output","workDir","cliConfig","loadInDashboard","warn","organizationId","__experimental_appConfiguration","error","exit","config","getDevServerConfig","spinner","start","startDevServer","skipStartLog","isApp","succeed","print","httpPort","chalk","blue","underline","getCoreAppURL","httpHost","err","gracefulServerDeath"],"mappings":";;;;;;AASA,SAASA,cAAcC,MAAyB;AAE9C,SAAOC,uBAAMC,QAAAA,QAAQF,KAAKG,QAAQC,QAAQD,IAAI,EAAEE,MAAM,CAAC,CAAC,EACrDC,QAAQ,QAAQ;AAAA,IAACC,MAAM;AAAA,IAAUC,SAAS;AAAA,EAAA,CAAY,EACtDF,QAAQ,QAAQ;AAAA,IAACC,MAAM;AAAA,IAAUC,SAAS;AAAA,EAAA,CAAK,EAC/CF,QAAQ,qBAAqB;AAAA,IAACC,MAAM;AAAA,IAAWC,SAAS;AAAA,EAAK,CAAA,EAAEL;AACpE;AAE8BM,eAAAA,kBAC5BT,MACAU,SACe;AACf,QAAMC,QAAQ,MAAMZ,cAAcC,IAAI,GAChC;AAAA,IAACY;AAAAA,IAAQC;AAAAA,IAASC;AAAAA,EAAAA,IAAaJ;AAEhCC,QAAMI,oBACTH,OAAOI,KAAK,8CAA8C,GAC1DJ,OAAOI,KAAK,mEAAmE;AAG7EC,MAAAA;AAEFH,eACA,qCAAqCA,aACrCA,UAAUI,iCAAiCD,mBAE3CA,iBAAiBH,UAAUI,gCAAgCD,iBAGxDA,mBACHL,OAAOO,MAAM,8EAA8E,GAC3Ff,QAAQgB,KAAK,CAAC;AAIhB,QAAMC,SAASC,UAAAA,mBAAmB;AAAA,IAChCX;AAAAA,IACAE;AAAAA,IACAC;AAAAA,IACAF;AAAAA,EAAAA,CACD;AAEG,MAAA;AACF,UAAMW,UAAUX,OAAOW,QAAQ,qBAAqB,EAAEC,MAAM;AAC5D,UAAMC,yBAAe;AAAA,MAAC,GAAGJ;AAAAA,MAAQK,cAAc;AAAA,MAAMC,OAAO;AAAA,IAAA,CAAK,GACjEJ,QAAQK,QAAAA,GAERhB,OAAOiB,MAAM,8BAA8BR,OAAOS,QAAQ,EAAE,GAC5DlB,OAAOiB,MAAM,6CAA6C,GAC1DjB,OAAOiB,MACLE,eAAMC,QAAAA,KACJD,eAAAA,QAAME,UACJC,wBAAc;AAAA,MAACjB;AAAAA,MAAgBkB,UAAUd,OAAOc;AAAAA,MAAUL,UAAUT,OAAOS;AAAAA,IAAS,CAAA,CACtF,CACF,CACF;AAAA,WACOM,KAAK;AACZC,YAAAA,oBAAoB,OAAOhB,OAAOc,UAAUd,OAAOS,UAAUM,GAAG;AAAA,EAAA;AAEpE;;"}
1
+ {"version":3,"file":"devAction.js","sources":["../../src/_internal/cli/actions/app/devAction.ts"],"sourcesContent":["import {type CliCommandArguments, type CliCommandContext} from '@sanity/cli'\nimport chalk from 'chalk'\nimport {hideBin} from 'yargs/helpers'\nimport yargs from 'yargs/yargs'\n\nimport {startDevServer} from '../../server/devServer'\nimport {gracefulServerDeath} from '../../util/servers'\nimport {getCoreAppURL, getDevServerConfig, type StartDevServerCommandFlags} from '../dev/devAction'\n\nfunction parseCliFlags(args: {argv?: string[]}) {\n // Using slice(1) to remove the first argument, which is the command `dev` path to the CLI\n return yargs(hideBin(args.argv || process.argv).slice(1))\n .options('host', {type: 'string'})\n .options('port', {type: 'number'})\n .options('load-in-dashboard', {type: 'boolean', default: true}).argv\n}\n\nexport default async function startAppDevServer(\n args: CliCommandArguments<StartDevServerCommandFlags>,\n context: CliCommandContext,\n): Promise<void> {\n const flags = await parseCliFlags(args)\n const {output, workDir, cliConfig} = context\n\n if (!flags.loadInDashboard) {\n output.warn(`Apps cannot run without the Sanity dashboard`)\n output.warn(`Starting dev server with the --load-in-dashboard flag set to true`)\n }\n\n let organizationId: string | undefined\n if (\n cliConfig &&\n '__experimental_appConfiguration' in cliConfig &&\n cliConfig.__experimental_appConfiguration?.organizationId\n ) {\n organizationId = cliConfig.__experimental_appConfiguration.organizationId\n }\n\n if (!organizationId) {\n output.error(`Apps require an organization ID (orgId) specified in your sanity.cli.ts file`)\n process.exit(1)\n }\n\n // Try to load CLI configuration from sanity.cli.(js|ts)\n const config = getDevServerConfig({\n flags,\n workDir,\n cliConfig,\n output,\n })\n\n try {\n const spinner = output.spinner('Starting dev server').start()\n await startDevServer({...config, skipStartLog: true, isApp: true})\n spinner.succeed()\n\n output.print(`Dev server started on port ${config.httpPort}`)\n output.print(`View your app in the Sanity dashboard here:`)\n output.print(\n chalk.blue(\n chalk.underline(\n getCoreAppURL({organizationId, httpHost: config.httpHost, httpPort: config.httpPort}),\n ),\n ),\n )\n } catch (err) {\n gracefulServerDeath('dev', config.httpHost, config.httpPort, err)\n }\n}\n"],"names":["parseCliFlags","args","yargs","hideBin","argv","process","slice","options","type","default","startAppDevServer","context","flags","output","workDir","cliConfig","loadInDashboard","warn","organizationId","__experimental_appConfiguration","error","exit","config","getDevServerConfig","spinner","start","startDevServer","skipStartLog","isApp","succeed","print","httpPort","chalk","blue","underline","getCoreAppURL","httpHost","err","gracefulServerDeath"],"mappings":";;;;;;AASA,SAASA,cAAcC,MAAyB;AAE9C,SAAOC,uBAAMC,QAAA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AAK;AACZC,YAAAA,oBAAoB,OAAOhB,OAAOc,UAAUd,OAAOS,UAAUM,GAAG;AAAA,EAAA;AAEpE;;"}
@@ -78,11 +78,9 @@ const getCoreURL = () => process.env.SANITY_INTERNAL_ENV === "staging" ? "https:
78
78
  }) => `${getCoreURL()}/@${organizationId}?dev=http://${httpHost}:${httpPort}`;
79
79
  function parseCliFlags(args) {
80
80
  return yargs__default.default(helpers.hideBin(args.argv || process.argv).slice(1)).options("host", {
81
- type: "string",
82
- default: "localhost"
81
+ type: "string"
83
82
  }).options("port", {
84
- type: "number",
85
- default: 3333
83
+ type: "number"
86
84
  }).option("load-in-dashboard", {
87
85
  type: "boolean",
88
86
  default: !1
@@ -1 +1 @@
1
- {"version":3,"file":"devAction2.js","sources":["../../src/_internal/cli/server/devServer.ts","../../src/_internal/cli/actions/dev/devAction.ts"],"sourcesContent":["import {type ReactCompilerConfig, type UserViteConfig} from '@sanity/cli'\nimport chalk from 'chalk'\n\nimport {debug} from './debug'\nimport {extendViteConfigWithUserConfig, getViteConfig} from './getViteConfig'\nimport {writeSanityRuntime} from './runtime'\n\nexport interface DevServerOptions {\n cwd: string\n basePath: string\n staticPath: string\n\n httpPort: number\n httpHost?: string\n projectName?: string\n\n reactStrictMode: boolean\n reactCompiler: ReactCompilerConfig | undefined\n vite?: UserViteConfig\n appLocation?: string\n isApp?: boolean\n skipStartLog?: boolean\n}\n\nexport interface DevServer {\n close(): Promise<void>\n}\n\nexport async function startDevServer(options: DevServerOptions): Promise<DevServer> {\n const {\n cwd,\n httpPort,\n httpHost,\n basePath,\n reactStrictMode,\n vite: extendViteConfig,\n reactCompiler,\n appLocation,\n isApp,\n skipStartLog,\n } = options\n\n const startTime = Date.now()\n debug('Writing Sanity runtime files')\n await writeSanityRuntime({cwd, reactStrictMode, watch: true, basePath, appLocation, isApp})\n\n debug('Resolving vite config')\n const mode = 'development'\n\n let viteConfig = await getViteConfig({\n basePath,\n mode: 'development',\n server: {port: httpPort, host: httpHost},\n cwd,\n reactCompiler,\n isApp,\n })\n\n // Extend Vite configuration with user-provided config\n if (extendViteConfig) {\n viteConfig = await extendViteConfigWithUserConfig(\n {command: 'serve', mode},\n viteConfig,\n extendViteConfig,\n )\n }\n\n debug('Creating vite server')\n const {createServer} = await import('vite')\n const server = await createServer(viteConfig)\n const info = server.config.logger.info\n\n debug('Listening on specified port')\n await server.listen()\n\n if (!skipStartLog) {\n const startupDuration = Date.now() - startTime\n const url = `http://${httpHost || 'localhost'}:${httpPort || '3333'}${basePath}`\n const appType = isApp ? 'Sanity application' : 'Sanity Studio'\n info(\n `${appType} ` +\n `using ${chalk.cyan(`vite@${require('vite/package.json').version}`)} ` +\n `ready in ${chalk.cyan(`${Math.ceil(startupDuration)}ms`)} ` +\n `and running at ${chalk.cyan(url)}`,\n )\n }\n return {close: () => server.close()}\n}\n","import path from 'node:path'\n\nimport {\n type CliCommandArguments,\n type CliCommandContext,\n type CliConfig,\n type CliOutputter,\n} from '@sanity/cli'\nimport {type SanityProject} from '@sanity/client'\nimport chalk from 'chalk'\nimport {hideBin} from 'yargs/helpers'\nimport yargs from 'yargs/yargs'\n\nimport {type DevServerOptions, startDevServer} from '../../server/devServer'\nimport {checkRequiredDependencies} from '../../util/checkRequiredDependencies'\nimport {checkStudioDependencyVersions} from '../../util/checkStudioDependencyVersions'\nimport {getSharedServerConfig, gracefulServerDeath} from '../../util/servers'\nimport {getTimer} from '../../util/timing'\n\nexport interface StartDevServerCommandFlags {\n 'host'?: string\n 'port'?: string\n 'load-in-dashboard'?: boolean\n 'force'?: boolean\n}\n\nexport const getCoreURL = (): string => {\n return process.env.SANITY_INTERNAL_ENV === 'staging'\n ? 'https://core.sanity.work'\n : 'https://core.sanity.io'\n}\n\nexport const getCoreAppURL = ({\n organizationId,\n httpHost = 'localhost',\n httpPort = 3333,\n}: {\n organizationId: string\n httpHost?: string\n httpPort?: number\n}): string => {\n // <core-app-url>/<orgniazationId>?dev=<dev-server-url>\n return `${getCoreURL()}/@${organizationId}?dev=http://${httpHost}:${httpPort}`\n}\n\nfunction parseCliFlags(args: {argv?: string[]}) {\n // Using slice(1) to remove the first argument, which is the command `dev` path to the CLI\n return yargs(hideBin(args.argv || process.argv).slice(1))\n .options('host', {type: 'string', default: 'localhost'})\n .options('port', {type: 'number', default: 3333})\n .option('load-in-dashboard', {type: 'boolean', default: false}).argv\n}\n\nexport default async function startSanityDevServer(\n args: CliCommandArguments<StartDevServerCommandFlags>,\n context: CliCommandContext,\n): Promise<void> {\n const timers = getTimer()\n const flags = await parseCliFlags(args)\n const {output, apiClient, workDir, cliConfig} = context\n\n const {loadInDashboard} = flags\n\n timers.start('checkStudioDependencyVersions')\n checkStudioDependencyVersions(workDir)\n timers.end('checkStudioDependencyVersions')\n\n // If the check resulted in a dependency install, the CLI command will be re-run,\n // thus we want to exit early\n if ((await checkRequiredDependencies(context)).didInstall) {\n return\n }\n\n // Try to load CLI configuration from sanity.cli.(js|ts)\n const config = getDevServerConfig({flags, workDir, cliConfig, output})\n\n const projectId = cliConfig?.api?.projectId\n let organizationId: string | undefined | null\n\n if (loadInDashboard) {\n if (!projectId) {\n output.error('Project Id is required to load in dashboard')\n process.exit(1)\n }\n\n const client = apiClient({\n requireUser: true,\n requireProject: true,\n })\n\n try {\n const project = await client.request<SanityProject>({uri: `/projects/${projectId}`})\n organizationId = project.organizationId\n } catch (err) {\n output.error('Failed to get organization Id from project Id')\n process.exit(1)\n }\n }\n\n try {\n const spinner = output.spinner('Starting dev server').start()\n await startDevServer({...config, skipStartLog: loadInDashboard})\n spinner.succeed()\n\n if (loadInDashboard) {\n if (!organizationId) {\n output.error('Organization Id not found for project')\n process.exit(1)\n }\n\n output.print(`Dev server started on ${config.httpPort} port`)\n output.print(`View your app in the Sanity dashboard here:`)\n output.print(\n chalk.blue(\n chalk.underline(\n getCoreAppURL({\n organizationId,\n httpHost: config.httpHost,\n httpPort: config.httpPort,\n }),\n ),\n ),\n )\n }\n } catch (err) {\n gracefulServerDeath('dev', config.httpHost, config.httpPort, err)\n }\n}\n\nexport function getDevServerConfig({\n flags,\n workDir,\n cliConfig,\n output,\n}: {\n flags: Awaited<ReturnType<typeof parseCliFlags>>\n workDir: string\n cliConfig?: CliConfig\n output: CliOutputter\n}): DevServerOptions {\n const configSpinner = output.spinner('Checking configuration files...')\n const baseConfig = getSharedServerConfig({\n flags: {\n host: flags.host,\n port: flags.port,\n },\n workDir,\n cliConfig,\n })\n configSpinner.succeed()\n\n const env = process.env // eslint-disable-line no-process-env\n const reactStrictMode = env.SANITY_STUDIO_REACT_STRICT_MODE\n ? env.SANITY_STUDIO_REACT_STRICT_MODE === 'true'\n : Boolean(cliConfig?.reactStrictMode)\n\n if (env.SANITY_STUDIO_BASEPATH && cliConfig?.project?.basePath) {\n output.warn(\n `Overriding configured base path (${cliConfig.project.basePath}) with value from environment variable (${env.SANITY_STUDIO_BASEPATH})`,\n )\n }\n\n return {\n ...baseConfig,\n staticPath: path.join(workDir, 'static'),\n reactStrictMode,\n reactCompiler: cliConfig && 'reactCompiler' in cliConfig ? cliConfig.reactCompiler : undefined,\n }\n}\n"],"names":["startDevServer","options","cwd","httpPort","httpHost","basePath","reactStrictMode","vite","extendViteConfig","reactCompiler","appLocation","isApp","skipStartLog","startTime","Date","now","debug","writeSanityRuntime","watch","mode","viteConfig","getViteConfig","server","port","host","extendViteConfigWithUserConfig","command","createServer","info","config","logger","listen","startupDuration","url","chalk","cyan","require","version","Math","ceil","close","getCoreURL","process","env","SANITY_INTERNAL_ENV","getCoreAppURL","organizationId","parseCliFlags","args","yargs","hideBin","argv","slice","type","default","option","startSanityDevServer","context","timers","getTimer","flags","output","apiClient","workDir","cliConfig","loadInDashboard","start","checkStudioDependencyVersions","end","checkRequiredDependencies","didInstall","getDevServerConfig","projectId","api","error","exit","client","requireUser","requireProject","request","uri","spinner","succeed","print","blue","underline","err","gracefulServerDeath","configSpinner","baseConfig","getSharedServerConfig","SANITY_STUDIO_REACT_STRICT_MODE","Boolean","SANITY_STUDIO_BASEP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qB;AACnB,QAAM2B,gBAAgB3B,OAAOoB,QAAQ,iCAAiC,GAChEQ,aAAaC,8BAAsB;AAAA,IACvC9B,OAAO;AAAA,MACLpC,MAAMoC,MAAMpC;AAAAA,MACZD,MAAMqC,MAAMrC;AAAAA,IACd;AAAA,IACAwC;AAAAA,IACAC;AAAAA,EAAAA,CACD;AACDwB,gBAAcN,QAAQ;AAEhBvC,QAAAA,MAAMD,QAAQC,KACdrC,kBAAkBqC,IAAIgD,kCACxBhD,IAAIgD,oCAAoC,SACxCC,CAAAA,CAAQ5B,WAAW1D;AAEvB,SAAIqC,IAAIkD,0BAA0B7B,WAAW8B,SAASzF,YACpDwD,OAAOkC,KACL,oCAAoC/B,UAAU8B,QAAQzF,QAAQ,2CAA2CsC,IAAIkD,sBAAsB,GACrI,GAGK;AAAA,IACL,GAAGJ;AAAAA,IACHO,YAAYC,cAAAA,QAAKC,KAAKnC,SAAS,QAAQ;AAAA,IACvCzD;AAAAA,IACAG,eAAeuD,aAAa,mBAAmBA,YAAYA,UAAUvD,gBAAgB0F;AAAAA,EACvF;AACF;;;;;;;;;;;;"}
1
+ {"version":3,"file":"devAction2.js","sources":["../../src/_internal/cli/server/devServer.ts","../../src/_internal/cli/actions/dev/devAction.ts"],"sourcesContent":["import {type ReactCompilerConfig, type UserViteConfig} from '@sanity/cli'\nimport chalk from 'chalk'\n\nimport {debug} from './debug'\nimport {extendViteConfigWithUserConfig, getViteConfig} from './getViteConfig'\nimport {writeSanityRuntime} from './runtime'\n\nexport interface DevServerOptions {\n cwd: string\n basePath: string\n staticPath: string\n\n httpPort: number\n httpHost?: string\n projectName?: string\n\n reactStrictMode: boolean\n reactCompiler: ReactCompilerConfig | undefined\n vite?: UserViteConfig\n appLocation?: string\n isApp?: boolean\n skipStartLog?: boolean\n}\n\nexport interface DevServer {\n close(): Promise<void>\n}\n\nexport async function startDevServer(options: DevServerOptions): Promise<DevServer> {\n const {\n cwd,\n httpPort,\n httpHost,\n basePath,\n reactStrictMode,\n vite: extendViteConfig,\n reactCompiler,\n appLocation,\n isApp,\n skipStartLog,\n } = options\n\n const startTime = Date.now()\n debug('Writing Sanity runtime files')\n await writeSanityRuntime({cwd, reactStrictMode, watch: true, basePath, appLocation, isApp})\n\n debug('Resolving vite config')\n const mode = 'development'\n\n let viteConfig = await getViteConfig({\n basePath,\n mode: 'development',\n server: {port: httpPort, host: httpHost},\n cwd,\n reactCompiler,\n isApp,\n })\n\n // Extend Vite configuration with user-provided config\n if (extendViteConfig) {\n viteConfig = await extendViteConfigWithUserConfig(\n {command: 'serve', mode},\n viteConfig,\n extendViteConfig,\n )\n }\n\n debug('Creating vite server')\n const {createServer} = await import('vite')\n const server = await createServer(viteConfig)\n const info = server.config.logger.info\n\n debug('Listening on specified port')\n await server.listen()\n\n if (!skipStartLog) {\n const startupDuration = Date.now() - startTime\n const url = `http://${httpHost || 'localhost'}:${httpPort || '3333'}${basePath}`\n const appType = isApp ? 'Sanity application' : 'Sanity Studio'\n info(\n `${appType} ` +\n `using ${chalk.cyan(`vite@${require('vite/package.json').version}`)} ` +\n `ready in ${chalk.cyan(`${Math.ceil(startupDuration)}ms`)} ` +\n `and running at ${chalk.cyan(url)}`,\n )\n }\n return {close: () => server.close()}\n}\n","import path from 'node:path'\n\nimport {\n type CliCommandArguments,\n type CliCommandContext,\n type CliConfig,\n type CliOutputter,\n} from '@sanity/cli'\nimport {type SanityProject} from '@sanity/client'\nimport chalk from 'chalk'\nimport {hideBin} from 'yargs/helpers'\nimport yargs from 'yargs/yargs'\n\nimport {type DevServerOptions, startDevServer} from '../../server/devServer'\nimport {checkRequiredDependencies} from '../../util/checkRequiredDependencies'\nimport {checkStudioDependencyVersions} from '../../util/checkStudioDependencyVersions'\nimport {getSharedServerConfig, gracefulServerDeath} from '../../util/servers'\nimport {getTimer} from '../../util/timing'\n\nexport interface StartDevServerCommandFlags {\n 'host'?: string\n 'port'?: string\n 'load-in-dashboard'?: boolean\n 'force'?: boolean\n}\n\nexport const getCoreURL = (): string => {\n return process.env.SANITY_INTERNAL_ENV === 'staging'\n ? 'https://core.sanity.work'\n : 'https://core.sanity.io'\n}\n\nexport const getCoreAppURL = ({\n organizationId,\n httpHost = 'localhost',\n httpPort = 3333,\n}: {\n organizationId: string\n httpHost?: string\n httpPort?: number\n}): string => {\n // <core-app-url>/<orgniazationId>?dev=<dev-server-url>\n return `${getCoreURL()}/@${organizationId}?dev=http://${httpHost}:${httpPort}`\n}\n\nfunction parseCliFlags(args: {argv?: string[]}) {\n // Using slice(1) to remove the first argument, which is the command `dev` path to the CLI\n return yargs(hideBin(args.argv || process.argv).slice(1))\n .options('host', {type: 'string'})\n .options('port', {type: 'number'})\n .option('load-in-dashboard', {type: 'boolean', default: false}).argv\n}\n\nexport default async function startSanityDevServer(\n args: CliCommandArguments<StartDevServerCommandFlags>,\n context: CliCommandContext,\n): Promise<void> {\n const timers = getTimer()\n const flags = await parseCliFlags(args)\n const {output, apiClient, workDir, cliConfig} = context\n\n const {loadInDashboard} = flags\n\n timers.start('checkStudioDependencyVersions')\n checkStudioDependencyVersions(workDir)\n timers.end('checkStudioDependencyVersions')\n\n // If the check resulted in a dependency install, the CLI command will be re-run,\n // thus we want to exit early\n if ((await checkRequiredDependencies(context)).didInstall) {\n return\n }\n\n // Try to load CLI configuration from sanity.cli.(js|ts)\n const config = getDevServerConfig({flags, workDir, cliConfig, output})\n\n const projectId = cliConfig?.api?.projectId\n let organizationId: string | undefined | null\n\n if (loadInDashboard) {\n if (!projectId) {\n output.error('Project Id is required to load in dashboard')\n process.exit(1)\n }\n\n const client = apiClient({\n requireUser: true,\n requireProject: true,\n })\n\n try {\n const project = await client.request<SanityProject>({uri: `/projects/${projectId}`})\n organizationId = project.organizationId\n } catch (err) {\n output.error('Failed to get organization Id from project Id')\n process.exit(1)\n }\n }\n\n try {\n const spinner = output.spinner('Starting dev server').start()\n await startDevServer({...config, skipStartLog: loadInDashboard})\n spinner.succeed()\n\n if (loadInDashboard) {\n if (!organizationId) {\n output.error('Organization Id not found for project')\n process.exit(1)\n }\n\n output.print(`Dev server started on ${config.httpPort} port`)\n output.print(`View your app in the Sanity dashboard here:`)\n output.print(\n chalk.blue(\n chalk.underline(\n getCoreAppURL({\n organizationId,\n httpHost: config.httpHost,\n httpPort: config.httpPort,\n }),\n ),\n ),\n )\n }\n } catch (err) {\n gracefulServerDeath('dev', config.httpHost, config.httpPort, err)\n }\n}\n\nexport function getDevServerConfig({\n flags,\n workDir,\n cliConfig,\n output,\n}: {\n flags: Awaited<ReturnType<typeof parseCliFlags>>\n workDir: string\n cliConfig?: CliConfig\n output: CliOutputter\n}): DevServerOptions {\n const configSpinner = output.spinner('Checking configuration files...')\n const baseConfig = getSharedServerConfig({\n flags: {\n host: flags.host,\n port: flags.port,\n },\n workDir,\n cliConfig,\n })\n configSpinner.succeed()\n\n const env = process.env // eslint-disable-line no-process-env\n const reactStrictMode = env.SANITY_STUDIO_REACT_STRICT_MODE\n ? env.SANITY_STUDIO_REACT_STRICT_MODE === 'true'\n : Boolean(cliConfig?.reactStrictMode)\n\n if (env.SANITY_STUDIO_BASEPATH && cliConfig?.project?.basePath) {\n output.warn(\n `Overriding configured base path (${cliConfig.project.basePath}) with value from environment variable (${env.SANITY_STUDIO_BASEPATH})`,\n )\n }\n\n return {\n ...baseConfig,\n staticPath: path.join(workDir, 'static'),\n reactStrictMode,\n reactCompiler: cliConfig && 'reactCompiler' in cliConfig ? cliConfig.reactCompiler : undefined,\n }\n}\n"],"names":["startDevServer","options","cwd","httpPort","httpHost","basePath","reactStrictMode","vite","extendViteConfig","reactCompiler","appLocation","isApp","skipStartLog","startTime","Date","now","debug","writeSanityRuntime","watch","mode","viteConfig","getViteConfig","server","port","host","extendViteConfigWithUserConfig","command","createServer","info","config","logger","listen","startupDuration","url","chalk","cyan","require","version","Math","ceil","close","getCoreURL","process","env","SANITY_INTERNAL_ENV","getCoreAppURL","organizationId","parseCliFlags","args","yargs","hideBin","argv","slice","type","option","default","startSanityDevServer","context","timers","getTimer","flags","output","apiClient","workDir","cliConfig","loadInDashboard","start","checkStudioDependencyVersions","end","checkRequiredDependencies","didInstall","getDevServerConfig","projectId","api","error","exit","client","requireUser","requireProject","request","uri","spinner","succeed","print","blue","underline","err","gracefulServerDeath","configSpinner","baseConfig","getSharedServerConfig","SANITY_STUDIO_REACT_STRICT_MODE","Boolean","SANITY_STUDIO_BASEPATH","project","warn","staticPath","path","join","undefined"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,eAAsBA,eAAeC,SAA+C;AAC5E,QAAA;AAAA,IACJC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC,MAAMC;AAAAA,IACNC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,EACEX,IAAAA,SAEEY,YAAYC,KAAKC,IAAI;AACrBC,gBAAA,8BAA8B,GACpC,MAAMC,2BAAmB;AAAA,IAACf;AAAAA,IAAKI;AAAAA,IAAiBY,OAAO;AAAA,IAAMb;AAAAA,IAAUK;AAAAA,IAAaC;AAAAA,EAAAA,CAAM,GAE1FK,QAAAA,MAAM,uBAAuB;AAC7B,QAAMG,OAAO;AAETC,MAAAA,aAAa,MAAMC,sBAAc;AAAA,IACnChB;AAAAA,IACAc,MAAM;AAAA,IACNG,QAAQ;AAAA,MAACC,MAAMpB;AAAAA,MAAUqB,MAAMpB;AAAAA,IAAQ;AAAA,IACvCF;AAAAA,IACAO;AAAAA,IACAE;AAAAA,EAAAA,CACD;AAGGH,uBACFY,aAAa,MAAMK,uCACjB;AAAA,IAACC,SAAS;AAAA,IAASP;AAAAA,EACnBC,GAAAA,YACAZ,gBACF,IAGFQ,QAAAA,MAAM,sBAAsB;AACtB,QAAA;AAAA,IAACW;AAAAA,EAAgB,IAAA,MAAM,OAAO,MAAM,GACpCL,SAAS,MAAMK,aAAaP,UAAU,GACtCQ,OAAON,OAAOO,OAAOC,OAAOF;AAElCZ,MAAAA,QAAAA,MAAM,6BAA6B,G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AAA,WAEKmF,KAAK;AACZC,YAAAA,oBAAoB,OAAO1D,OAAOzB,UAAUyB,OAAO1B,UAAUmF,GAAG;AAAA,EAAA;AAEpE;AAEO,SAASf,mBAAmB;AAAA,EACjCX;AAAAA,EACAG;AAAAA,EACAC;AAAAA,EACAH;AAMF,GAAqB;AACnB,QAAM2B,gBAAgB3B,OAAOoB,QAAQ,iCAAiC,GAChEQ,aAAaC,8BAAsB;AAAA,IACvC9B,OAAO;AAAA,MACLpC,MAAMoC,MAAMpC;AAAAA,MACZD,MAAMqC,MAAMrC;AAAAA,IACd;AAAA,IACAwC;AAAAA,IACAC;AAAAA,EAAAA,CACD;AACDwB,gBAAcN,QAAQ;AAEhBvC,QAAAA,MAAMD,QAAQC,KACdrC,kBAAkBqC,IAAIgD,kCACxBhD,IAAIgD,oCAAoC,SACxCC,CAAAA,CAAQ5B,WAAW1D;AAEvB,SAAIqC,IAAIkD,0BAA0B7B,WAAW8B,SAASzF,YACpDwD,OAAOkC,KACL,oCAAoC/B,UAAU8B,QAAQzF,QAAQ,2CAA2CsC,IAAIkD,sBAAsB,GACrI,GAGK;AAAA,IACL,GAAGJ;AAAAA,IACHO,YAAYC,cAAAA,QAAKC,KAAKnC,SAAS,QAAQ;AAAA,IACvCzD;AAAAA,IACAG,eAAeuD,aAAa,mBAAmBA,YAAYA,UAAUvD,gBAAgB0F;AAAAA,EACvF;AACF;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const SANITY_VERSION = "3.80.0";
2
+ const SANITY_VERSION = "3.80.1";
3
3
  exports.SANITY_VERSION = SANITY_VERSION;
4
4
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
- const SANITY_VERSION = "3.80.0";
1
+ const SANITY_VERSION = "3.80.1";
2
2
  export {
3
3
  SANITY_VERSION
4
4
  };
@@ -1,4 +1,4 @@
1
- const SANITY_VERSION = "3.80.0";
1
+ const SANITY_VERSION = "3.80.1";
2
2
  export {
3
3
  SANITY_VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity",
3
- "version": "3.80.0",
3
+ "version": "3.80.1",
4
4
  "description": "Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches",
5
5
  "keywords": [
6
6
  "sanity",
@@ -161,11 +161,11 @@
161
161
  "@rexxars/react-json-inspector": "^9.0.1",
162
162
  "@sanity/asset-utils": "^2.0.6",
163
163
  "@sanity/bifur-client": "^0.4.1",
164
- "@sanity/cli": "3.80.0",
164
+ "@sanity/cli": "3.80.1",
165
165
  "@sanity/client": "^6.28.3",
166
166
  "@sanity/color": "^3.0.0",
167
167
  "@sanity/comlink": "^3.0.1",
168
- "@sanity/diff": "3.80.0",
168
+ "@sanity/diff": "3.80.1",
169
169
  "@sanity/diff-match-patch": "^3.1.1",
170
170
  "@sanity/diff-patch": "^5.0.0",
171
171
  "@sanity/eventsource": "^5.0.0",
@@ -175,15 +175,15 @@
175
175
  "@sanity/import": "^3.38.0",
176
176
  "@sanity/insert-menu": "^1.1.6",
177
177
  "@sanity/logos": "^2.1.13",
178
- "@sanity/migrate": "3.80.0",
179
- "@sanity/mutator": "3.80.0",
178
+ "@sanity/migrate": "3.80.1",
179
+ "@sanity/mutator": "3.80.1",
180
180
  "@sanity/presentation-comlink": "^1.0.12",
181
181
  "@sanity/preview-url-secret": "^2.1.6",
182
- "@sanity/schema": "3.80.0",
182
+ "@sanity/schema": "3.80.1",
183
183
  "@sanity/telemetry": "^0.7.7",
184
- "@sanity/types": "3.80.0",
184
+ "@sanity/types": "3.80.1",
185
185
  "@sanity/ui": "^2.15.7",
186
- "@sanity/util": "3.80.0",
186
+ "@sanity/util": "3.80.1",
187
187
  "@sanity/uuid": "^3.0.2",
188
188
  "@sentry/react": "^8.33.0",
189
189
  "@tanstack/react-table": "^8.16.0",
@@ -279,10 +279,10 @@
279
279
  "devDependencies": {
280
280
  "@playwright/experimental-ct-react": "1.51.0",
281
281
  "@playwright/test": "1.51.0",
282
- "@repo/dev-aliases": "3.80.0",
283
- "@repo/package.config": "3.80.0",
284
- "@repo/test-config": "3.80.0",
285
- "@sanity/codegen": "3.80.0",
282
+ "@repo/dev-aliases": "3.80.1",
283
+ "@repo/package.config": "3.80.1",
284
+ "@repo/test-config": "3.80.1",
285
+ "@sanity/codegen": "3.80.1",
286
286
  "@sanity/generate-help-url": "^3.0.0",
287
287
  "@sanity/pkg-utils": "6.13.4",
288
288
  "@sanity/tsdoc": "1.0.169",
@@ -327,5 +327,5 @@
327
327
  "engines": {
328
328
  "node": ">=18"
329
329
  },
330
- "gitHead": "6fac7e47af2af164da616e7d5e67e84b36fd142e"
330
+ "gitHead": "16676a7837be1e24f4e59d0813d996e5cb573da3"
331
331
  }
@@ -10,8 +10,8 @@ import {getCoreAppURL, getDevServerConfig, type StartDevServerCommandFlags} from
10
10
  function parseCliFlags(args: {argv?: string[]}) {
11
11
  // Using slice(1) to remove the first argument, which is the command `dev` path to the CLI
12
12
  return yargs(hideBin(args.argv || process.argv).slice(1))
13
- .options('host', {type: 'string', default: 'localhost'})
14
- .options('port', {type: 'number', default: 3333})
13
+ .options('host', {type: 'string'})
14
+ .options('port', {type: 'number'})
15
15
  .options('load-in-dashboard', {type: 'boolean', default: true}).argv
16
16
  }
17
17
 
@@ -46,8 +46,8 @@ export const getCoreAppURL = ({
46
46
  function parseCliFlags(args: {argv?: string[]}) {
47
47
  // Using slice(1) to remove the first argument, which is the command `dev` path to the CLI
48
48
  return yargs(hideBin(args.argv || process.argv).slice(1))
49
- .options('host', {type: 'string', default: 'localhost'})
50
- .options('port', {type: 'number', default: 3333})
49
+ .options('host', {type: 'string'})
50
+ .options('port', {type: 'number'})
51
51
  .option('load-in-dashboard', {type: 'boolean', default: false}).argv
52
52
  }
53
53