File tree 4 files changed +4
-4
lines changed 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ Your headless CMS might allow you to include a variable in the preview URL so th
74
74
``` js
75
75
export default async (req , res ) => {
76
76
// 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
78
78
if (req .query .secret !== ' MY_SECRET_TOKEN' || ! req .query .slug ) {
79
79
return res .status (401 ).json ({ message: ' Invalid token' })
80
80
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'
2
2
3
3
export default async ( req , res ) => {
4
4
// 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
6
6
if (
7
7
req . query . secret !== process . env . NEXT_EXAMPLE_CMS_DATOCMS_PREVIEW_SECRET ||
8
8
! req . query . slug
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'
2
2
3
3
export default async ( req , res ) => {
4
4
// 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
6
6
if (
7
7
req . query . secret !== process . env . NEXT_EXAMPLE_CMS_SANITY_PREVIEW_SECRET ||
8
8
! req . query . slug
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getPreviewPostBySlug } from '../../lib/api'
2
2
3
3
export default async ( req , res ) => {
4
4
// 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
6
6
if (
7
7
req . query . secret !==
8
8
process . env . NEXT_EXAMPLE_CMS_TAKESHAPE_PREVIEW_SECRET ||
You can’t perform that action at this time.
0 commit comments