mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
sentry config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -8,3 +8,5 @@ obj1/
|
|||||||
.vs/
|
.vs/
|
||||||
Installer/version_define.nsh
|
Installer/version_define.nsh
|
||||||
bun.lock
|
bun.lock
|
||||||
|
|
||||||
|
.env.sentry-build-plugin
|
||||||
|
|||||||
1174
package-lock.json
generated
1174
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -38,6 +38,7 @@
|
|||||||
"@fontsource/noto-sans-kr": "^5.2.7",
|
"@fontsource/noto-sans-kr": "^5.2.7",
|
||||||
"@fontsource/noto-sans-sc": "^5.2.7",
|
"@fontsource/noto-sans-sc": "^5.2.7",
|
||||||
"@fontsource/noto-sans-tc": "^5.2.7",
|
"@fontsource/noto-sans-tc": "^5.2.7",
|
||||||
|
"@sentry/vite-plugin": "^4.3.0",
|
||||||
"@sentry/vue": "^10.11.0",
|
"@sentry/vue": "^10.11.0",
|
||||||
"@types/jest": "^30.0.0",
|
"@types/jest": "^30.0.0",
|
||||||
"@types/node": "^24.3.3",
|
"@types/node": "^24.3.3",
|
||||||
|
|||||||
@@ -14,18 +14,14 @@ export function initSentry(app) {
|
|||||||
app,
|
app,
|
||||||
dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
|
dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
|
||||||
environment: 'nightly',
|
environment: 'nightly',
|
||||||
sampleRate: 0.1,
|
replaysSessionSampleRate: 0.1,
|
||||||
beforeSend(event) {
|
replaysOnErrorSampleRate: 1.0,
|
||||||
if (
|
integrations: [
|
||||||
event.message &&
|
Sentry.replayIntegration({
|
||||||
(event.message.toLowerCase().includes('password') ||
|
maskAllText: true,
|
||||||
event.message.toLowerCase().includes('token'))
|
blockAllMedia: true
|
||||||
) {
|
})
|
||||||
return null;
|
]
|
||||||
}
|
|
||||||
return event;
|
|
||||||
},
|
|
||||||
integrations: []
|
|
||||||
});
|
});
|
||||||
console.log('Sentry initialized');
|
console.log('Sentry initialized');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,7 +376,6 @@
|
|||||||
backgroundColor: 'transparent'
|
backgroundColor: 'transparent'
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(echartsOption);
|
|
||||||
return echartsOption;
|
return echartsOption;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { dirname, resolve } from 'node:path';
|
import { dirname, resolve } from 'node:path';
|
||||||
|
|
||||||
@@ -8,7 +9,15 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig(() => ({
|
export default defineConfig(() => ({
|
||||||
base: '',
|
base: '',
|
||||||
plugins: [vue()],
|
plugins: [
|
||||||
|
vue(),
|
||||||
|
sentryVitePlugin({
|
||||||
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||||
|
org: 'example',
|
||||||
|
project: 'vrcx-web',
|
||||||
|
url: 'https://example.example.example/'
|
||||||
|
})
|
||||||
|
],
|
||||||
define: {
|
define: {
|
||||||
LINUX: JSON.stringify(process.env.PLATFORM === 'linux'),
|
LINUX: JSON.stringify(process.env.PLATFORM === 'linux'),
|
||||||
WINDOWS: JSON.stringify(process.env.PLATFORM === 'windows')
|
WINDOWS: JSON.stringify(process.env.PLATFORM === 'windows')
|
||||||
@@ -29,6 +38,7 @@ export default defineConfig(() => ({
|
|||||||
index: resolve(__dirname, 'index.html'),
|
index: resolve(__dirname, 'index.html'),
|
||||||
vr: resolve(__dirname, 'vr.html')
|
vr: resolve(__dirname, 'vr.html')
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
sourcemap: true
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user