cli not generating migration files due to cf bindings usage
im trying to set up better auth on cf workers (currently with hono, but would switch once this i would find a fix for this).
i have the following betterauth config:
it has to be a function as i need to pass the cf env in somehow.
this is where the client is created:
has anyone experienced this aswell before?
im aware that the cli is trying to look for a config exported under the name
i have the following betterauth config:
it has to be a function as i need to pass the cf env in somehow.
this is where the client is created:
has anyone experienced this aswell before?
im aware that the cli is trying to look for a config exported under the name
auth, but under my circumstances it's simply just not possibleSolution
I recommend making a fake auth file and a real auth file.
The fake one is just your better-auth config except for any fields which require ENV vars.
^ This file will be the one you would then use for the better-auth cli to read.
The real one would be the one you currently have.
The fake one is just your better-auth config except for any fields which require ENV vars.
^ This file will be the one you would then use for the better-auth cli to read.
The real one would be the one you currently have.
