Skip to content

Commit

Permalink
Mention router.isPreview on Preview Mode page (#39830)
Browse files Browse the repository at this point in the history
The documentation is concise and straightforward, so I just added a sentence.
Let me know if you'd like to describe more, add an example, etc.

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
arthurdenner and ijjk committed Aug 22, 2022
1 parent b6bbbc8 commit d2ab9bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/advanced-features/preview-mode.md
Expand Up @@ -173,6 +173,8 @@ https://<your-site>/api/preview?secret=<token>&slug=<path>

## More Details

> **Note**: during rendering `next/router` exposes an `isPreview` flag, see the [router object docs](/docs/api-reference/next/router.md#router-object) for more info.
### Clear the Preview Mode cookies

By default, no expiration date is set for Preview Mode cookies, so the preview session ends when the browser is closed.
Expand Down

0 comments on commit d2ab9bc

Please sign in to comment.