Skip to content

Commit 398672c

Browse files
committed
minor fixes
1 parent c63ba5b commit 398672c

File tree

2 files changed

+4
-4
lines changed
  • docs/plugins/hwp-previews/tutorial

2 files changed

+4
-4
lines changed

docs/plugins/hwp-previews/tutorial/previews-with-rest/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,15 @@ We will now configure the preview URL in WordPress to point to your Next.js app.
253253
```
254254
http://localhost:3000/api/preview?id={ID}&secret=YOUR_SECRET_TOKEN
255255
```
256-
5. Replace `YOUR_SECRET_TOKEN` with a random string (like `my-secret-preview-token-123`)
256+
5. Replace `YOUR_SECRET_TOKEN` with a random string
257257
6. Click "Save Changes"
258258
259259
![WordPress HWP Previews settings page showing the Posts tab with "Enable HWP Previews" checkbox checked and a Preview URL Template field containing the localhost preview URL](../screenshots/configure-hwp-previews.png)
260260
261261
Update your `.env.local` file with the same secret token:
262262
263263
```bash
264-
WP_PREVIEW_SECRET=my-secret-preview-token-123
264+
WP_PREVIEW_SECRET=YOUR_SECRET_TOKEN
265265
```
266266
267267
## Step 9: Start your application

docs/plugins/hwp-previews/tutorial/previews-with-wpgraphql/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,15 @@ We will now configure the preview URL in WordPress to point to your Next.js app.
298298
```
299299
http://localhost:3000/api/preview?id={ID}&secret=YOUR_SECRET_TOKEN
300300
```
301-
5. Replace `YOUR_SECRET_TOKEN` with a random string (like `my-secret-preview-token-123`)
301+
5. Replace `YOUR_SECRET_TOKEN` with a random string
302302
6. Click "Save Changes"
303303
304304
![WordPress HWP Previews settings page showing the Posts tab with "Enable HWP Previews" checkbox checked and a Preview URL Template field containing the localhost preview URL](../screenshots/configure-hwp-previews.png)
305305
306306
Update your `.env.local` file with the same secret token:
307307
308308
```bash
309-
WP_PREVIEW_SECRET=my-secret-preview-token-123
309+
WP_PREVIEW_SECRET=YOUR_SECRET_TOKEN
310310
```
311311
312312
## Step 10: Start your application

0 commit comments

Comments
 (0)