feat: Upload sourcemaps to Sentry on release (no-changelog) (#11557)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Alex Grozav
2024-11-05 14:48:51 +02:00
committed by GitHub
parent 5ca781bf3a
commit ef54760064
6 changed files with 47 additions and 220 deletions

View File

@@ -1,7 +1,6 @@
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
import { defineConfig, mergeConfig } from 'vite';
import { sentryVitePlugin } from '@sentry/vite-plugin';
import { vitestConfig } from '../design-system/vite.config.mts';
import icons from 'unplugin-icons/vite';
@@ -57,22 +56,7 @@ const plugins = [
vue(),
];
const { SENTRY_AUTH_TOKEN: authToken, RELEASE: release } = process.env;
if (release && authToken) {
plugins.push(
sentryVitePlugin({
org: 'n8nio',
project: 'instance-frontend',
// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// and needs the `project:releases` and `org:read` scopes
authToken,
telemetry: false,
release: {
name: release,
},
}),
);
}
const { RELEASE: release } = process.env;
export default mergeConfig(
defineConfig({