airbrake para recibir los errores

This commit is contained in:
f 2021-01-12 14:14:14 -03:00
parent bead5822a8
commit 2fdcd6025e
7 changed files with 5222 additions and 2 deletions

1
.env
View file

@ -1 +0,0 @@
# Colocar variables de entorno

2
.env.example Normal file
View file

@ -0,0 +1,2 @@
AIRBRAKE_PROJECT_ID=
AIRBRAKE_PROJECT_KEY=""

View file

@ -48,7 +48,7 @@ push: ## Publica los cambios locales
@test -f $@ && cat $@ | xargs -r kill &>/dev/null || :
@rm -f $@
js = $(wildcard _packs/*.js) $(wildcard _packs/*/*.js)
js = $(wildcard _packs/*.js) $(wildcard _packs/*/*.js) $(wildcard *.js)
assets/js/pack.js: $(js)
./node_modules/.bin/webpack --config webpack.prod.js

View file

@ -1,3 +1,11 @@
import { Notifier } from '@airbrake/browser'
window.airbrake = new Notifier({
projectId: parseInt(process.env.AIRBRAKE_PROJECT_ID),
projectKey: process.env.AIRBRAKE_PROJECT_KEY,
host: 'https://panel.sutty.nl'
})
import 'core-js/stable'
import 'regenerator-runtime/runtime'

View file

@ -1,5 +1,6 @@
{
"dependencies": {
"@airbrake/browser": "^1.4.1",
"@babel/core": "^7.10.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.10.4",
@ -19,6 +20,7 @@
"webpack-merge": "^5.0.9"
},
"devDependencies": {
"dotenv-webpack": "^6.0.0",
"turbolinks": "^5.2.0"
}
}

View file

@ -1,4 +1,9 @@
const Dotenv = require('dotenv-webpack');
module.exports = {
plugins: [
new Dotenv()
],
entry: './_packs/entry.js',
output: {
path: __dirname,

5204
yarn.lock

File diff suppressed because it is too large Load diff