404 on all pages of a Next js application with "app router" setup

If it helps someone, here’s how I solved this.

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

1 Like