This project combines the official Astro Blog template with Wix Headless, enabling seamless content management with Wix while delivering a high-performance static site using Astro.
- 🚀 Astro-powered blog – A minimal, performant, and SEO-friendly blog template built with Astro.
- 📝 Wix Blog as a Headless CMS – Manage blog content directly in the Wix Dashboard, including posts, categories, and tags.
- 🔗 Seamless Data Fetching – Uses
@wix/astroto fetch and display blog content dynamically.
Check out the Wix Astro Blog Demo here:
Scaffold a new Wix Astro Blog project using the official template:
npm create astro@latest -- --template wix/headless-templates/astro/blogSync required API keys and settings with Wix:
npx wix edge pull-envThis generates a .env.local file with your environment variables.
Run the local development server:
npm run devVisit http://localhost:4321/ to view your blog. 🎉
The blog includes sample posts to start. Edit or add new posts via the Wix Blog Dashboard:
- Open the Wix Dashboard → Blog.
- Update or create new posts.
- Modify titles, content, images, and tags.
- Publish or save as a draft.
More details:
-
📝 Content Management – Create and manage blog posts, categories, and tags directly in the Wix Blog Dashboard.
-
📡 Data Fetching – The
@wix/astroadapter enables seamless data retrieval using the Wix SDK:- Blog Posts – Uses
wixBlogLoaderto dynamically fetch and format blog posts, creating the blog content collection.
Thanks to the
wix()Astro adapter from@wix/astro, all content is efficiently retrieved and integrated into the Astro Blog template. - Blog Posts – Uses
-
⚡ Fast & Optimized – Blog posts are statically generated for speed while still allowing dynamic updates via Wix.
To deploy your site, run the following command:
npm run deploy:prodThis will build and deploy your site to the configured hosting platform. Ensure that all necessary environment variables are set before running this command.
If you prefer to deploy manually, you can use Vercel, Netlify, GitHub Pages, or any other hosting service while still maintaining dynamic content capabilities from Wix.