Standalone Sanity Studio for editing the content used by the public website.
Studio can be used on phones: its built-in responsive navigation and editing screens are retained, with larger touch targets and mobile-friendly form controls on narrow screens. The Sanity-hosted sign-in screen is managed by Sanity and is not styled by this project.
- Copy
.env.exampleto.envand fill in the Sanity project ID and dataset. - Install dependencies with
npm install. - Start Studio with
npm run dev. - Open the URL printed by Sanity and sign in with an invited Sanity account.
To migrate the initial data from the sibling website-masjid project, run:
npx sanity login
npm run migrate:dataThe public website does not receive a write token. Access control is managed by Sanity project membership and roles.
Buka Pengaturan Website di navigasi Studio untuk mengubah warna identitas/aksen dan warna kategori berita, teks pembuka hero, konten serta foto Tentang Kami, dan gambar QRIS. Nilai warna menggunakan format HEX enam digit, misalnya #0d3d2b. Setelah perubahan dipublikasikan, website publik akan mengambil pengaturan terbaru; warna netral/status dan placeholder QRIS tidak dikustomisasi.
This project includes vercel.json for a static Sanity Studio deployment.
When importing it into Vercel:
- Keep the project Root Directory as
.because this repository is already the Studio project root. - Set
SANITY_STUDIO_PROJECT_IDandSANITY_STUDIO_DATASETin Vercel for the required environments. - Keep the build command as
npm run buildand the output directory asdist. - Deploy. The rewrite in
vercel.jsonkeeps client-side Studio routes working after refresh.
For a Sanity-hosted Studio instead, use npm run deploy; that is separate from the Vercel deployment.