fix: authentication not working

This commit is contained in:
2026-04-24 23:13:17 +02:00
parent 7d705247d0
commit ed24d24da2

View File

@@ -231,4 +231,4 @@ export const createAuth = (d1: D1Database, baseURL = env.ORIGIN) =>
* This instance is used by the `better-auth` CLI for schema generation ONLY.
* To access `auth` at runtime, use `event.locals.auth`.
*/
export const auth = createAuth(null!);
export const auth = createAuth(null!, 'http://localhost');