CLI cant generate using SvelteKits $app import
So i just followed the guide. when i tried generating the db things i run into
ERROR [Better Auth]: [#better-auth]: Couldn't read your auth config. Error: Cannot find module '$app/environment'
not entirely sure why this dosent work in the cli? i could use vite env stuff but still weird error imo3 Replies
there is some issues with reading framework speceic imports like
$app/environement
. Instead you should use dotenv + process.env to get the env variables. This is only for the cli, you can revert it back ocne you generated the schemayop thats what i did.
Did i miss it or is it mentioned in the docs?
It's not mentioned in the docs I think. we should probably do that