“Unlock the Future of Web Development: Discover the Hidden Powers of Headless WordPress!”
You can start a new Astro project by running the following in your terminal:
npm create astro@latest -- --template blog
This will give you the latest version of Astro with prebuilt blog templates. By default, this blog is powered by Astro’s content collections and will render markdown (and MDX) from .md
and .mdx
files stored in the frontend repository.

In addition, we’ll need a few dependencies for interfacing with WordPress via GraphQL:
npm install graphql-request graphql
Let’s start our project to see what we’re working with by running npm run dev
. From the terminal output, we can see that the site runs on localhost:4321
.
Post Comment