Timeout when deploying to Cloudflare Workers with Better Auth when using getSession
Hiya 👋
I'm deploying a React Router v7 application to Cloudflare Workers, using Better Auth and Drizzle ORM.
My issue is that the Worker fails validation due to exceeding a startup limit.
This seems to happen mostly when then code below is present, as without it, the application seems to deploy successfully.
Any suggestions/points on how to go about resolving this would be very welcome. Thank you!
2 Replies
hmm i dont know exactly about your config but may be can you try at least doing some kind of caching like cookieCache for session data
I have no idea what caused it, but it just stopped happening 🤯