npm install
npm install --D dotenv
Create .env file with WP_URL = http://yourwpsite.com/graphql
npm run dev
Based on https://blog.openreplay.com/building-an-astro-website-with-wordpress-as-a-headless-cms/ blog with a few modifications.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
npm install
npm install --D dotenv
Create .env file with WP_URL = http://yourwpsite.com/graphql
npm run dev
Based on https://blog.openreplay.com/building-an-astro-website-with-wordpress-as-a-headless-cms/ blog with a few modifications.