The project runs on "localhost" without any problems. There is no error when I run "npm run build", but when I build "docker build ./ -t mekavip:1.0.7" with docker, this error appears.
The problem is that the project works very well, but when I build it with Docker and publish it to Plesk, some "URL" addresses give an "Internal Server Error" error. The URL addresses that give this error are the "/login", "/register" pages and the "/panel" url address linked to "next-auth", but when the "panel" url address does not have login permission, it automatically redirects to the "/login" url page.
=> => # Learn more: https://nextjs.org/docs/api-reference/edge-runtime
=> => # Import trace for requested module:
=> => # ./node_modules/bcryptjs/dist/bcrypt.js
=> => # ./lib/auth.config.ts
=> => # ./lib/auth.ts
=> => # Linting and checking validity of types ...