mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-30 21:00:00 +00:00
♻️ log only in DEV
This commit is contained in:
parent
a81ea7cc8f
commit
c7df70143e
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue