How to Preview WordPress Drafts in Astro Before Publishing

Disclaimer: Content may contain affiliate links, WPThink.com may earn a commission from qualifying purchases.

Why preview breaks

A WordPress preview can be perfectly valid while Astro still looks dead.

The editor clicks Preview, WordPress opens a URL, and Astro answers with a 404 or yesterday’s version. That usually feels like a content error, but it is not. WordPress can preview unpublished revisions inside its own authenticated world; a static Astro site only knows whatever content was fetched during the last build.

Until Astro is given a preview-aware path—typically SSR, on-demand rendering, or a signed draft endpoint—it has nothing to render for that draft. In other words, the failure is structural, not editorial: WordPress is showing future data, while Astro is serving frozen data.