Hi @lzh
Welcome to the Auth0 Community!
Thank you for posting your question. I’m not a Next.js expert, but I’ve done some research and found a similar issue in other thread → Http://localhost:3000/api/auth/me returns 404 in Console - #8 by wisenickel5, which points to the code snippet from the NextJS Auth0 readme.md. Let me know if this solves your issue.
Thanks
Dawid