From 67fd72b764b78784f24122820614d6fa153e3bc3 Mon Sep 17 00:00:00 2001 From: Yuji Matsumoto Date: Thu, 26 Mar 2020 00:13:33 +0700 Subject: [PATCH] Fix preview-mode docs/examples typo (#11345) be know => be known --- docs/advanced-features/preview-mode.md | 2 +- examples/cms-datocms/pages/api/preview.js | 2 +- examples/cms-sanity/pages/api/preview.js | 2 +- examples/cms-takeshape/pages/api/preview.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/advanced-features/preview-mode.md b/docs/advanced-features/preview-mode.md index a1d8da4532cc..2e7fd264cc50 100644 --- a/docs/advanced-features/preview-mode.md +++ b/docs/advanced-features/preview-mode.md @@ -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' }) } diff --git a/examples/cms-datocms/pages/api/preview.js b/examples/cms-datocms/pages/api/preview.js index 763e8977ef2f..5343f2ead574 100644 --- a/examples/cms-datocms/pages/api/preview.js +++ b/examples/cms-datocms/pages/api/preview.js @@ -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 diff --git a/examples/cms-sanity/pages/api/preview.js b/examples/cms-sanity/pages/api/preview.js index b644011c8234..721f972d25c0 100644 --- a/examples/cms-sanity/pages/api/preview.js +++ b/examples/cms-sanity/pages/api/preview.js @@ -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 diff --git a/examples/cms-takeshape/pages/api/preview.js b/examples/cms-takeshape/pages/api/preview.js index e47ac6f4d865..ed7becac3f83 100644 --- a/examples/cms-takeshape/pages/api/preview.js +++ b/examples/cms-takeshape/pages/api/preview.js @@ -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 ||