strapi / starters-and-templates

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

Static HTML export fail (next export) #39

Open gala49 opened 2 years ago

gala49 commented 2 years ago

Hi,

I am struggling with next export on Strapi corporate template (with next.js). The thing is i18n is not compatible with next export and if I want to have free hosting on Heroku I just need it.

I've been trying to remove i18n package (and /fr/ data fetching) by myself but the app is a bit more complex than I can handle by myself. Is there a possibility to have a version with single language fetching? Or any article about deleting the package from your starters?

Thanks!

remidej commented 2 years ago

Hello, this is the commit that added internationalization to this starter: https://github.com/strapi/strapi-starter-next-corporate/commit/203a3e20dc6fdea9775f4f3f9b14153c76929d59

I guess you could try to manually roll back all these changes. Keep in mind that it was implemented on Strapi v3, so the code has probably changed quite a bit now with the v4