#middleware not worked.
9 messages · Page 1 of 1 (latest)
you don't export the function as default. So don't export default. Just export
export const middleware(req, event) {...}
Thank you for your answer.
However, console.log is not captured. @static lintel
oh one more thing
middleware.js has to be in the same level as the pages directory
not inside it
(ping)
if you put it this way it will be interpreted as /middleware route