airbrake para recibir los errores
This commit is contained in:
parent
bead5822a8
commit
2fdcd6025e
7 changed files with 5222 additions and 2 deletions
1
.env
1
.env
|
@ -1 +0,0 @@
|
||||||
# Colocar variables de entorno
|
|
2
.env.example
Normal file
2
.env.example
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
AIRBRAKE_PROJECT_ID=
|
||||||
|
AIRBRAKE_PROJECT_KEY=""
|
2
Makefile
2
Makefile
|
@ -48,7 +48,7 @@ push: ## Publica los cambios locales
|
||||||
@test -f $@ && cat $@ | xargs -r kill &>/dev/null || :
|
@test -f $@ && cat $@ | xargs -r kill &>/dev/null || :
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
|
|
||||||
js = $(wildcard _packs/*.js) $(wildcard _packs/*/*.js)
|
js = $(wildcard _packs/*.js) $(wildcard _packs/*/*.js) $(wildcard *.js)
|
||||||
assets/js/pack.js: $(js)
|
assets/js/pack.js: $(js)
|
||||||
./node_modules/.bin/webpack --config webpack.prod.js
|
./node_modules/.bin/webpack --config webpack.prod.js
|
||||||
|
|
||||||
|
|
|
@ -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 'core-js/stable'
|
||||||
import 'regenerator-runtime/runtime'
|
import 'regenerator-runtime/runtime'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@airbrake/browser": "^1.4.1",
|
||||||
"@babel/core": "^7.10.4",
|
"@babel/core": "^7.10.4",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
||||||
"@babel/preset-env": "^7.10.4",
|
"@babel/preset-env": "^7.10.4",
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
"webpack-merge": "^5.0.9"
|
"webpack-merge": "^5.0.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"dotenv-webpack": "^6.0.0",
|
||||||
"turbolinks": "^5.2.0"
|
"turbolinks": "^5.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
|
const Dotenv = require('dotenv-webpack');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
new Dotenv()
|
||||||
|
],
|
||||||
entry: './_packs/entry.js',
|
entry: './_packs/entry.js',
|
||||||
output: {
|
output: {
|
||||||
path: __dirname,
|
path: __dirname,
|
||||||
|
|
Loading…
Reference in a new issue