vue.config.js
const SentryCliPlugin = require(’@sentry/webpack-plugin’);
new SentryCliPlugin({
include: './center_web',
ignoreFile: '.sentrycliignore',
ignore: ['node_modules', 'webpack.config.js'],
configFile: 'sentry.properties',
release: 'center@test01',
})
================================
main.js
import * as Sentry from "@sentry/browser";
import { Vue as VueIntegration } from “@sentry/integrations”;
Sentry.init({
release: ‘center@test01’,
dsn: “http://4103a9a5212e4aaea7e7a7a751a165b5@192.168.3.182:9000/3”,
integrations: [new VueIntegration({ Vue, attachProps: true })],
});
Sentry.captureException(new Error(‘release’))
==================================
.sentryclirc
[defaults]
url = http://192.168.3.182:9000/
org = sentry
project = center
[auth]
token = 0285941f3dac46b69cd7e8ff4be832c79a191c490522413da07bfaaab85d0c0b
======================================
I triggered an error report, and reported http, why no problem was found in test1