Skip to content

Commit

Permalink
Adjust revlidation response
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Dec 8, 2023
1 parent 20211fc commit 2fdcf61
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pages/api/revalidate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const slug = decodeURIComponent(req.query.slug as string);
try {
await res.revalidate(slug)
return res.json({revalidated: true})
} catch (err: unknown) {
// If there was an error, Next.js will continue
// to show the last successfully generated page
Expand Down

0 comments on commit 2fdcf61

Please sign in to comment.