-
Notifications
You must be signed in to change notification settings - Fork 989
feat: Configure Sentry source map uploads using environment variables… #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,15 +1,21 @@ | ||||||||||
| import { sentrySvelteKit } from "@sentry/sveltekit"; | ||||||||||
| import tailwindcss from '@tailwindcss/vite'; | ||||||||||
| import { sveltekit } from '@sveltejs/kit/vite'; | ||||||||||
| import { defineConfig } from 'vite'; | ||||||||||
| import { defineConfig, loadEnv } from 'vite'; | ||||||||||
|
|
||||||||||
| export default defineConfig({ | ||||||||||
| plugins: [sentrySvelteKit({ | ||||||||||
| org: "micropyramid-fa", | ||||||||||
| project: "bottlecrm-app", | ||||||||||
| autoUploadSourceMaps: !!process.env.PUBLIC_SENTRY_DSN | ||||||||||
| }), tailwindcss(), sveltekit()], | ||||||||||
| optimizeDeps: { | ||||||||||
| exclude: ['esm-env'] | ||||||||||
| } | ||||||||||
| }); | ||||||||||
| export default defineConfig(({ mode }) => { | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||||||||||
| const env = loadEnv(mode, process.cwd(), ''); | ||||||||||
|
||||||||||
| return { | ||||||||||
| plugins: [sentrySvelteKit({ | ||||||||||
| org: "micropyramid-fa", | ||||||||||
| project: "bottlecrm-app", | ||||||||||
|
Comment on lines
+10
to
+11
|
||||||||||
| project: "bottlecrm-app", | |
| project: "bottlecrm-app", | |
| // SENTRY_AUTH_TOKEN is required for uploading source maps to Sentry. | |
| // Ensure this is set in your environment and documented in the frontend env template (e.g. .env.example) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').