Skip to content

Commit 67fd72b

Browse files
authored
Fix preview-mode docs/examples typo (#11345)
be know => be known
1 parent 074c60e commit 67fd72b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/advanced-features/preview-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Your headless CMS might allow you to include a variable in the preview URL so th
7474
```js
7575
export default async (req, res) => {
7676
// Check the secret and next parameters
77-
// This secret should only be know to this API route and the CMS
77+
// This secret should only be known to this API route and the CMS
7878
if (req.query.secret !== 'MY_SECRET_TOKEN' || !req.query.slug) {
7979
return res.status(401).json({ message: 'Invalid token' })
8080
}

examples/cms-datocms/pages/api/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'
22

33
export default async (req, res) => {
44
// Check the secret and next parameters
5-
// This secret should only be know to this API route and the CMS
5+
// This secret should only be known to this API route and the CMS
66
if (
77
req.query.secret !== process.env.NEXT_EXAMPLE_CMS_DATOCMS_PREVIEW_SECRET ||
88
!req.query.slug

examples/cms-sanity/pages/api/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'
22

33
export default async (req, res) => {
44
// Check the secret and next parameters
5-
// This secret should only be know to this API route and the CMS
5+
// This secret should only be known to this API route and the CMS
66
if (
77
req.query.secret !== process.env.NEXT_EXAMPLE_CMS_SANITY_PREVIEW_SECRET ||
88
!req.query.slug

examples/cms-takeshape/pages/api/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'
22

33
export default async (req, res) => {
44
// Check the secret and next parameters
5-
// This secret should only be know to this API route and the CMS
5+
// This secret should only be known to this API route and the CMS
66
if (
77
req.query.secret !==
88
process.env.NEXT_EXAMPLE_CMS_TAKESHAPE_PREVIEW_SECRET ||

0 commit comments

Comments
 (0)