Error: i18n support is not compatible with next export.

I was trying to add i18n: {locales: [“en”], defaultLocale: “en”, }, to my next.config.js file for implementing <html lang=”en”> for SEO purposes, but I got the following error in my Vercel deployments dashboard:
Error: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment
So, what I did after a small research, I deleted in package.json file the next export part:

and left only next build:

After saving, redeploying the changes, the issue has been fixed.

Posted by Edgar Hovhannisyan

Comments

Your email address will not be published. Required fields are marked *