mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
chore: Disabling console logs on production builds (#208)
* chore: Disabling console logs on production builds * chore: adding changeset
This commit is contained in:
parent
fc24a4f9c0
commit
b852977496
2 changed files with 6 additions and 1 deletions
5
.changeset/dark-signs-show.md
Normal file
5
.changeset/dark-signs-show.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"sqlseal": patch
|
||||
---
|
||||
|
||||
disabling logs in the console on production builds
|
||||
|
|
@ -12,7 +12,7 @@ import { apiModule } from '../api/module'
|
|||
import { globalTables } from '../globalTables/module'
|
||||
import { explorer } from '../explorer/module'
|
||||
|
||||
const obsidian = new Registrator({ logger: console.log })
|
||||
const obsidian = new Registrator(process.env.NODE_ENV === 'development' ? { logger: console.log } : undefined)
|
||||
.import<'app', App>()
|
||||
.import<'plugin', Plugin>()
|
||||
.import<'vault', Vault>()
|
||||
|
|
|
|||
Loading…
Reference in a new issue