#Astro SSG Sanity Presentation

3 messages · Page 1 of 1 (latest)

willow quartz
#

Can Sanity Presentation work even on my Astro SSG website? If it works then how? I'm planning to deploy my site on Cloudflare pages.

floral flaxBOT
#

Hi @willow quartz. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources provided do not contain enough information to answer your question about Sanity Presentation working with an Astro SSG (static site generation) setup. The Sanity & Astro guide in the knowledge sources only lists official resources and themes without detailing how Sanity Presentation (Sanity's visual editing/preview tool) functions in a static context. [Sanity & Astro]

For accurate guidance on Sanity Presentation with Astro SSG, I'd recommend checking:


Regarding your Cloudflare deployment question: since you're building a static site (SSG), you do not need the @astrojs/cloudflare adapter. The adapter is only required for on-demand (server-side) rendered routes. For a purely static Astro site, you can deploy directly to Cloudflare Workers (or the legacy Cloudflare Pages) without any adapter. [Deploy to Cloudflare; @astrojs/cloudflare]

Note: Cloudflare now recommends using Cloudflare Workers for new projects rather than Cloudflare Pages. [Deploy to Cloudflare]


Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: