Skip to content

Commit

Permalink
Revert "Fix: Contentful webhook body parse. (#40732)"
Browse files Browse the repository at this point in the history
This reverts commit ef9ba45.
  • Loading branch information
ijjk committed Sep 26, 2022
1 parent 2af6b63 commit 3a1a822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cms-contentful/pages/api/revalidate.js
Expand Up @@ -14,7 +14,7 @@ export default async function handler(req, res) {
}

try {
let postSlug = JSON.parse(req.body).fields.slug['en-US']
let postSlug = req.body.fields.slug['en-US']

// revalidate the individual post and the home page
await res.revalidate(`/posts/${postSlug}`)
Expand Down

0 comments on commit 3a1a822

Please sign in to comment.