Add sentry dsn

This commit is contained in:
Natsumi
2025-09-17 17:29:43 +12:00
parent 70aceaf89a
commit 5d0c6c4141
3 changed files with 67 additions and 30 deletions

View File

@@ -5,18 +5,21 @@ import { fileURLToPath } from 'node:url';
import { dirname, resolve } from 'node:path';
const __dirname = dirname(fileURLToPath(import.meta.url));
const url = process.env.SENTRY_URL;
const authToken = process.env.SENTRY_AUTH_TOKEN;
// https://vite.dev/config/
export default defineConfig(() => ({
base: '',
plugins: [
vue(),
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'example',
project: 'vrcx-web',
url: 'https://example.example.example/'
})
url &&
sentryVitePlugin({
url,
authToken,
org: 'vrcx',
project: 'vrcx-web'
})
],
define: {
LINUX: JSON.stringify(process.env.PLATFORM === 'linux'),