Setup with different basePath?

How to setup Better-auth when I have a different NETXjs basepath, other than the base one?
Like if I'm deploying my project in a subdomain of a main site, and have to change the basePath in next.config.
Was this page helpful?