If it helps someone, here’s how I solved this.
- removed the i18n config from next.config.js
i18n: {
locales: ["en"],
defaultLocale: "en",
},
in my case, I don’t need it at all.
Then I started getting a 500 internal server error, and the below trick solved it.
Server.edge not defined Error on nextJS SSR functions cause site to return 500 Errors - #31 by lewisking Preformatted text