Tuesday 9th April, 2024
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.
You can learn more by following my social media:
Support my blog by this link: https://buymeacoffee.com/edx126
Posted by Edgar Hovhannisyan