Hono + Bun + Better Auth 404 error when using app.route
Hey, I'm trying to setup a hono server like this, but when I call the /api/auth/ok endpoint I got a 404.
In fact I'm also using a
app.route()
in my entryfile. A very strange behavior break the "/api/auth/**"
matching
Working version
Non working version
It's really strange that this bug happen when I have a new endpoint declarated
Has anyone had this problem before, or can anyone help me?
Wishing you a good day π1 Reply
Problem solved the
/api/auth/**
handler is not well written, change it to /api/auth/*
(PR that solve the issue in better-auth docs https://github.com/better-auth/better-auth/pull/1317)