Redirect error during build? "Collecting page data ..Error: NEXT_REDIRECT"
Unanswered
Cynipid gall wasp posted this in #help-forum
Cynipid gall waspOP
Hi everyone!
I'm running into this error when running npm run build. The redirects are called in a server component, and I also have useRouter redirects in some client components. I've attached a pic of the console error and the specific file it mentioned in the error, although the specific file seems to change when running npm run build. The error is the same however. It seems like I'm doing something wrong with redirects but I'm struggling to find the issue.
Any thoughts on why this might be happening would be a great help!
I'm running into this error when running npm run build. The redirects are called in a server component, and I also have useRouter redirects in some client components. I've attached a pic of the console error and the specific file it mentioned in the error, although the specific file seems to change when running npm run build. The error is the same however. It seems like I'm doing something wrong with redirects but I'm struggling to find the issue.
Any thoughts on why this might be happening would be a great help!