Studio and functions
Deploy Studio, then the functions that refresh the cache and create redirects.
On this page
terminal
cd apps/studio
pnpm run deployUse pnpm run deploy, not pnpm deploy, which is pnpm's own command.
Sanity Functions
- invalidate-tags refreshes the site's cache when content is published
- auto-redirect creates a redirect when a page's slug changes