Server.edge not defined Error on nextJS SSR functions cause site to return 500 Errors

I fixed my issues using a combination of fixes from this and other threads. I did not test these steps in the order I’ll post them here, but I believe they all together fix the issue.

  1. Downgrade to “next”: “13.4.9”
  2. in next.config.js add this to your export,
experimental: {
  appDir: true,
}
  1. Follow the steps in Server.edge not defined Error on nextJS SSR functions cause site to return 500 Errors - #31 by lewisking

I cannot understate how much I hate when a product puts me through this kind of esoteric ritual, and it’s making me reconsider using netlify. Huge props to the community.

6 Likes