Where does a middleware run?
Answered
Jersey Wooly posted this in #help-forum
Jersey WoolyOP
do they actually run in the server side? or are they client-side? asking cause i find it weird how an edge-function can't use things like jsonwebtoken (crypto)
5 Replies
@Jersey Wooly do they actually run in the server side? or are they client-side? asking cause i find it weird how an edge-function can't use things like jsonwebtoken (crypto)
run on the server in edge runtime which doesn't support nodejs api
consider using jose instead
https://github.com/vercel/next.js/issues/43115#issuecomment-1321785193
https://github.com/vercel/next.js/issues/43115#issuecomment-1321785193
Jersey WoolyOP
yeah i realized
so the client has no access to it?