Middleware.tsx
Answered
Varun posted this in #help-forum
VarunOP
I don't see a middleware.tsx created in my project and generally I read that it is supposed to be on the same level as the pages folder. Would the equivalent of my pages folder be app?
3 Replies
@Varun I don't see a middleware.tsx created in my project and generally I read that it is supposed to be on the same level as the pages folder. Would the equivalent of my pages folder be app?
it should be at the root of directory
/middleware.ts
Answer
or
src/middleware.ts
if you are using src folderVarunOP
thanks!