sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

feat(solidstart): Add `sentrySolidStartVite` plugin to simplify source maps upload

Open andreiborza opened this issue 1 year ago • 0 comments

This plugin simplifies source maps upload by using @sentry/vite-plugin and enabling source map generation by default.

Usage:

import { defineConfig } from '@solidjs/start/config'
import { sentrySolidStartVite } from '@sentry/solidstart'

export default defineConfig({
  vite: {
    plugins: [
      sentrySolidStartVite({
        sourceMapsUploadOptions: {
          enabled: true,
          org: process.env.SENTRY_ORG,
          project: process.env.SENTRY_PROJECT,
          authToken: process.env.SENTRY_AUTH_TOKEN,
        },
        debug: true,
      }),
    ],
  }
})

Closes: #12553

andreiborza avatar Aug 28 '24 09:08 andreiborza