mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-15 04:26:14 +00:00
♻️ log only in DEV
This commit is contained in:
@@ -13,7 +13,10 @@ bootstrapVolume();
|
||||
|
||||
function createDb() {
|
||||
const sqlite = new Database(location);
|
||||
return DrizzleSqlite(sqlite, { schema, logger: true });
|
||||
return DrizzleSqlite(sqlite, {
|
||||
schema,
|
||||
logger: process.env.NODE_ENV === "development"
|
||||
});
|
||||
}
|
||||
|
||||
export const db = createDb();
|
||||
|
||||
Reference in New Issue
Block a user