Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Build

Builds the current Sanity configuration to a static bundle

usage: sanity build [OUTPUT_DIR]

   Builds the current Sanity configuration to a static bundle

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)
  -y, --yes Use unattended mode, accepting defaults and using only flags for choices

Examples
  sanity build
  sanity build --no-minify --source-maps

Was this article helpful?