Skip to content

Commit

Permalink
Fix preview-mode docs/examples typo (#11345)
Browse files Browse the repository at this point in the history
be know => be known
  • Loading branch information
queq1890 authored Mar 25, 2020
1 parent 074c60e commit 67fd72b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/advanced-features/preview-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Your headless CMS might allow you to include a variable in the preview URL so th
```js
export default async (req, res) => {
// Check the secret and next parameters
// This secret should only be know to this API route and the CMS
// This secret should only be known to this API route and the CMS
if (req.query.secret !== 'MY_SECRET_TOKEN' || !req.query.slug) {
return res.status(401).json({ message: 'Invalid token' })
}
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-datocms/pages/api/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'

export default async (req, res) => {
// Check the secret and next parameters
// This secret should only be know to this API route and the CMS
// This secret should only be known to this API route and the CMS
if (
req.query.secret !== process.env.NEXT_EXAMPLE_CMS_DATOCMS_PREVIEW_SECRET ||
!req.query.slug
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sanity/pages/api/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'

export default async (req, res) => {
// Check the secret and next parameters
// This secret should only be know to this API route and the CMS
// This secret should only be known to this API route and the CMS
if (
req.query.secret !== process.env.NEXT_EXAMPLE_CMS_SANITY_PREVIEW_SECRET ||
!req.query.slug
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-takeshape/pages/api/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'

export default async (req, res) => {
// Check the secret and next parameters
// This secret should only be know to this API route and the CMS
// This secret should only be known to this API route and the CMS
if (
req.query.secret !==
process.env.NEXT_EXAMPLE_CMS_TAKESHAPE_PREVIEW_SECRET ||
Expand Down

0 comments on commit 67fd72b

Please sign in to comment.