Skip to content

Commit

Permalink
docs: recommend WORDPRESS_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
claygriffiths committed Jan 15, 2021
1 parent 0a29e25 commit ab9092f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions examples/preview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab9092f

Please sign in to comment.