#middleware not worked.

9 messages · Page 1 of 1 (latest)

acoustic flame
#

hello.
not worked. I saw the document, but I'm not sure.
Can you help me?

static lintel
#

you don't export the function as default. So don't export default. Just export

#

export const middleware(req, event) {...}

acoustic flame
#

Thank you for your answer.
However, console.log is not captured. @static lintel

static lintel
#

oh one more thing

#

middleware.js has to be in the same level as the pages directory

#

not inside it

static lintel
#

if you put it this way it will be interpreted as /middleware route