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

Hello, just want to thank you for all your support. I was having the issue described in this thread, here’s what i did:

  • Next is at 13.3.1

  • @netlify/plugin-nextjs is at 4.36.1

  • Set experimental mode to “true” on next.config.js (below for people just starting out like myself):
    this is my next.config.js file:

/** @type {import(‘next’).NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
}

module.exports = nextConfig

With these changes, app is currently deployed and working! I’m a true beginning at this, started on netlify yesterday, with Nextjs a week ago. So if I can deploy a website, i don’t see why others won’t be able to!

Thank you again for all your help, your responses along this thread helped me a lot in finding the right configuration. I’m not saying people have to do exactly what I did, maybe they can do without setting the experimental mode to true. Just sharing what worked for me

Best wishes!

1 Like