Unverified Commit 2abbb7ab authored by Shu Uesugi's avatar Shu Uesugi Committed by GitHub

Typo on preview mode documentation (#10892)

parent 178f45b2
...@@ -75,7 +75,7 @@ Your headless CMS might allow you to include a variable in the preview URL so th ...@@ -75,7 +75,7 @@ Your headless CMS might allow you to include a variable in the preview URL so th
export default async (req, res) => { export default async (req, res) => {
// Check the secret and next parameters // Check the secret and next parameters
// This secret should only be know to this API route and the CMS // This secret should only be know to this API route and the CMS
if (req.query.secret !== 'MY_SECRET_TOKEN' || !res.query.slug) { if (req.query.secret !== 'MY_SECRET_TOKEN' || !req.query.slug) {
return res.status(401).json({ message: 'Invalid token' }) return res.status(401).json({ message: 'Invalid token' })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment