From 91d9138d0bed9509bc4bfa8f5d6960425122bf15 Mon Sep 17 00:00:00 2001 From: Stefano Verna Date: Mon, 8 Feb 2021 10:11:59 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 56fbe6a3..c54a5da2 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ cp .env.example .env Then set each variable on `.env`: - `NEXT_EXAMPLE_CMS_DATOCMS_API_TOKEN` should be the API token you just copied. -- `NEXT_EXAMPLE_CMS_DATOCMS_PREVIEW_SECRET` can be any random string (but avoid spaces), like `MY_SECRET` - this is used for [the Preview Mode](/docs/advanced-features/preview-mode.md). +- `NEXT_EXAMPLE_CMS_DATOCMS_PREVIEW_SECRET` can be any random string (but avoid spaces), like `MY_SECRET` - this is used for the Preview Mode](https://www.datocms.com/docs/next-js/setting-up-next-js-preview-mode). Your `.env` file should look like this: @@ -68,7 +68,7 @@ On DatoCMS, go to one of the posts you've created and: (If it doesn't become draft, you need to go to the model settings for `Post`, go to **Additional Settings**, and turn on **Enable draft/published system**.) -Now, if you go to the post page on localhost, you won't see the updated title. However, if you use the **Preview Mode**, you'll be able to see the change ([Documentation](/docs/advanced-features/preview-mode.md)). +Now, if you go to the post page on localhost, you won't see the updated title. However, if you use the **Preview Mode**, you'll be able to see the change ([Documentation](https://www.datocms.com/docs/next-js/setting-up-next-js-preview-mode)). To enable the Preview Mode, go to this URL: @@ -79,4 +79,4 @@ http://localhost:3000/api/preview?secret= - `` should be the string you entered for `NEXT_EXAMPLE_CMS_DATOCMS_PREVIEW_SECRET`. - `` should be the post's `slug` attribute (you can check on DatoCMS). -You should now be able to see the updated title. To exit the preview mode, you can click **Click here to exit preview mode** at the top. \ No newline at end of file +You should now be able to see the updated title. To exit the preview mode, you can click **Click here to exit preview mode** at the top.