From ab9092fb3376b97539589ef84e8a220d0c9ee6ba Mon Sep 17 00:00:00 2001 From: Clay Griffiths Date: Thu, 14 Jan 2021 13:11:28 -0600 Subject: [PATCH] docs: recommend WORDPRESS_URL --- README.md | 2 +- examples/preview/README.md | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index ba0083725..17dc3e85c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Eager to try out the Headless Framework? Here's how you can get started with our 4. [Clone this repository](https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/cloning-a-repository) to a directory of your choice 5. Navigate to `examples/preview` in the cloned repository 6. `cp .env.local.sample .env.local` -7. Populate `NEXT_PUBLIC_WORDPRESS_URL` and `WPE_HEADLESS_SECRET` accordingly in `.env.local` +7. Populate `WORDPRESS_URL` (or `NEXT_PUBLIC_WORDPRESS_URL`) and `WPE_HEADLESS_SECRET` accordingly in `.env.local` 8. `npm install && npm run dev` ## Framework Features diff --git a/examples/preview/README.md b/examples/preview/README.md index f937ffcd2..c72d2cf42 100644 --- a/examples/preview/README.md +++ b/examples/preview/README.md @@ -13,14 +13,6 @@ Install the latest plugin for this project and [WPGraphQL](https://wordpress.org The framework expects a few environment variables. Copy `.env.local.sample` to `.env.local` and fill out the variables accordingly. -```bash -# Base URL for WordPress -NEXT_PUBLIC_WORDPRESS_URL=http://yourwpsite.com - -# Plugin secret found in WordPress Settings->Headless -WPE_HEADLESS_SECRET=YOUR_PLUGIN_SECRET -``` - ## Run it ```bash