fix: pass original request headers to auth.api.getSession
This commit is contained in:
@@ -5,12 +5,5 @@ import * as schema from "./schema";
|
||||
|
||||
const connectionString = process.env.DATABASE_URL!;
|
||||
|
||||
const client = postgres(connectionString, {
|
||||
debug: (connection, query, params, types) => {
|
||||
console.log("[postgres.js debug]", query, params);
|
||||
},
|
||||
onnotice: (notice) => {
|
||||
console.log("[postgres.js notice]", notice);
|
||||
},
|
||||
});
|
||||
export const db = drizzle(client, { schema, logger: true, cache: new NoopCache() });
|
||||
const client = postgres(connectionString);
|
||||
export const db = drizzle(client, { schema, cache: new NoopCache() });
|
||||
|
||||
Reference in New Issue
Block a user