Next.js Build Error: ” Route.js couldn’t be rendered statically because it accessed request.url”
I’m working on a Next.js project and encountering an issue when trying to export the build. The error suggests that an API route is being prerendered, which results in a failure because it accesses request.url. Below are the details: