Astro WordPress Starter is a project that serves as a flexible starting point for using Astro with WordPress as a headless CMS. It provides resources and examples to help users get started with this combination. The project requires WordPress, WPGraphQL, and environment variables to be set up. It leverages WordPress CMS routing capabilities and uses WPGraphQL to handle route paths. The project includes support for built-in content types like Post, Page, Tag, and Category, but can also be extended for custom post types. Astro WordPress Starter uses the new hybrid rendering model in Astro v2 and pre-renders routes to HTML for improved performance. It also mentions AtlasWP Engine’s Atlas platform as a recommended hosting solution for headless WordPress and Node-based JavaScript apps.
To install Astro WordPress Starter, follow these steps:
.env file:WORDPRESS_API_URL = https://yoursitename.com/graphql
npm run dev to start the development server.Astro WordPress Starter is a project that provides a flexible starting point for using Astro with WordPress as a headless CMS. It offers examples and resources to help users get started. The project leverages the routing capabilities of WordPress CMS and uses WPGraphQL to handle route paths. It supports built-in content types and can be easily extended for custom post types. Astro WordPress Starter uses the new hybrid rendering model in Astro v2 to pre-render routes for improved performance. It recommends AtlasWP Engine’s Atlas platform for headless WordPress hosting.