storyblok / react-next-boilerplate

Nextjs Storyblok boilerplate
https://www.storyblok.com/tp/add-a-headless-cms-to-next-js-in-5-minutes
64 stars 34 forks source link

api/preview.js missing closing curly bracket #14

Closed wilbsy closed 3 years ago

wilbsy commented 3 years ago

/pages/api/preview.js line 22 is missing a closing curly bracket.

res.redirect(/${slug}?${params[1]) should be... res.redirect(/${slug}?${params[1]})

I can submit a pull request if you'd like, since it's a super straightforward fix. Thanks!

lisilinhart commented 3 years ago

Already fixed, thanks