未验证 提交 67fd72b7 编写于 作者: Y Yuji Matsumoto 提交者: GitHub

Fix preview-mode docs/examples typo (#11345)

be know => be known
上级 074c60e0
......@@ -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' })
}
......
......@@ -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
......
......@@ -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
......
......@@ -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 ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册