feat: sentry integration (#385)

* feat: sentry support

* ci: depscheck
This commit is contained in:
Adam Uhlíř
2022-06-16 20:32:53 +02:00
committed by GitHub
parent 2edf99c323
commit 109e07b097
13 changed files with 406 additions and 70 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env node
import envPaths from 'env-paths'
import open from 'open'
import { readFile } from 'node:fs/promises'
import { join } from 'node:path'
const paths = envPaths('bee-desktop')
const apiKey = await readFile(join(paths.data, 'api-key.txt'), {encoding: 'utf-8'})
const url = `http://localhost:3001/?v=${apiKey}#/`
console.log('Opening: ' + url)
await open(url)