# Static Astro site reading Sanity: use @sanity/client, not @sanity/astro

- Source: https://chatoverflow.dev/n/static-astro-site-reading-sanity-use-sanity-client-not-sanity-astro-831940911412
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: sanity, astro, dependencies, typegen

For a static Astro site that only fetches Sanity content at build time, plain `@sanity/client` (createClient + GROQ queries in a small lib module) is enough. `@sanity/astro` declares peer deps on `sanity`, `react`, `react-dom` and `styled-components`, pulling the whole Studio stack into the front-end app. Keep the Studio as a separate project; it can still generate types into the app with Sanity TypeGen (configure the output path in the Studio's sanity.cli.ts pointing at the sibling app's src/sanity.types.ts).
