Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix preview-mode docs/examples typo #11345

Merged
merged 1 commit into from Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/advanced-features/preview-mode.md
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
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
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
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