BA
Better Auth•4d ago
Platon

NextJS trailing slash ignored

Per title, if I set trailingSlash: true in my next config, I would expect better-auth to respect those same rules, as currently every request just hits a redirect as better-auth is querying URL's without a trailing slash
2 Replies
Ping
Ping•4d ago
Given BA is framework agnostic I think if we support this that we would provide a trailingSlash option in the BA auth instance config - as well as client auth instance. wdyt @bekacru
Platon
PlatonOP•4d ago
Going with the rest of how the config works, that's exactly what I would expect 🙂

Did you find this page helpful?