middleware not running with /app folder
Answered
Pharaoh Hound posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
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](https://cdn.discordapp.com/attachments/1168718139031310386/1168718139312316426/Screenshot_2023-10-30_at_8.02.35_PM.png?ex=6552c896&is=65405396&hm=97d0e65261bf9cc195b9e7fa746f15468413e2342027fb0b64b47223e5844391&)
![Image](https://cdn.discordapp.com/attachments/1168718139031310386/1168718139610116216/Screenshot_2023-10-30_at_8.03.54_PM.png?ex=6552c896&is=65405396&hm=50fa1233e1529274fd36a5ab90255e80650257646bce92db329683fc287dfe88&)
2 Replies
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
Don't include the app in the middleware config and just use root /
Answer
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
As your matching like the url is shown for client