Next.js Discord

Discord Forum

Any route with the word "auth" returning 404

Answered
Asari posted this in #help-forum
Open in Discord
Avatar
AsariOP
Hello, I have a weird one for you, any route I have that contains the word "auth" will return a 404 status code, now two days ago, my /auth routes worked but I moved some stuff around and /auth routes became /u/auth. I tried moving the auth folder out of the "u" folder but I still get a 404 error
Image
Answered by Clown
Delete node modules and .next folder
View full answer

6 Replies

Avatar
Delete node modules and .next folder
Answer
Avatar
Reinstall dependencies and then check again
If that doesn't fix it, show Middleware file. Check to see if you messed up any of the configs
Avatar
@Clown Delete node modules and .next folder
Avatar
AsariOP
Hey, sorry for the slow reply but thank you, I will try that now
Avatar
AsariOP
Hey man, thank you for the help, it looks to be working now 🙂