Next.js Discord

Discord Forum

middleware not running with /app folder

Answered
Pharaoh Hound posted this in #help-forum
Open in Discord
Avatar
Pharaoh HoundOP
Can someone help me understand why the middleware is not working (its impossible do step through the code)? My next auth url is set to NEXTAUTH_URL=http://localhost:9090/app
Image
Image
Answered by Risky
Don't include the app in the middleware config and just use root /
View full answer

2 Replies

Avatar
Risky
Don't include the app in the middleware config and just use root /
Answer
Avatar
Risky
As your matching like the url is shown for client