👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

Deploy

Deploys a statically built Sanity studio

usage: sanity deploy [SOURCE_DIR] [--no-build]  [--source-maps] [--no-minify]

   Deploys a statically built Sanity studio

Options
  --auto-updates / --no-auto-updates Enable/disable auto-updates of studio versions
  --source-maps Enable source maps for built bundles (increases size of bundle)
  --no-minify Skip minifying built Javascript (speeds up build, increases size of bundle)
  --no-build Don't build the studio prior to deploy, instead deploying the version currently in `dist/`

Examples
  sanity deploy
  sanity deploy --no-minify --source-maps

Was this article helpful?