strapi / starters-and-templates

Monorepo for all official Strapi v4 templates
MIT License
327 stars 117 forks source link

next-corporate: preview is broken #59

Open pierregm opened 2 years ago

pierregm commented 2 years ago

The preview mode fails on next-corporate. The issue comes from packages/starters/next-corporate/starter/pages/api/preview.js L15, where the locale variable isn't defined.

staminna commented 1 year ago

On clean install, latest version as of today, changing the locale ID of the default locale, will break Strapi.

  1. Delete "FR".
  2. Add "PT".

Deleting cache folder and rebuilding yarn develop will still show "FR" and won't change anything on the template.

  1. Deleting "EN" and setting "PT" to default, for example, I don't think there is a turning back.

Can someone help?

Thanks.

bart-webleads commented 1 year ago

The preview mode fails on next-corporate. The issue comes from packages/starters/next-corporate/starter/pages/api/preview.js L15, where the locale variable isn't defined.

This is correct, I have the same problem...