Clerk Middleware throws edge runtime error

I have set up clerk auth according to there documentations. I created a middleware.ts file in my src directory. Now when I build my app I get this error: After doing some reasearch I saw that nextjs middleware doesn't support nodejs runtimes, because they are run on the edge and its not changeable (for whatever reason) Discussion in NextJS Repo: https://github.com/vercel/next.js/discussions/46722 Is this a normal thing to happen? Is there something I can do about it? Thanks a lot!
GitHub
Switchable Runtime for Middleware (Allow Node.js APIs in Middleware...
Goals Compatibility / Performance: Allow for using common Node.js APIs in Middleware (eg. fs, net and tls to perform database queries without fetch overhead) Symmetry: Avoid bug reports / confusion...
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server