Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next-corporate: preview is broken #59

Open
pierregm opened this issue Aug 28, 2022 · 2 comments
Open

next-corporate: preview is broken #59

pierregm opened this issue Aug 28, 2022 · 2 comments

Comments

@pierregm
Copy link

pierregm commented Aug 28, 2022

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
Copy link

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
Copy link
Contributor

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants