Skip to content

Commit

Permalink
sentry: Enable source map uploads
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Oct 9, 2023
1 parent 22d1137 commit 9e6f78c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Sentry Auth Token
.env.sentry-build-plugin
13 changes: 12 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { sentryVitePlugin } from "@sentry/vite-plugin";

export default defineConfig(() => {
return {
build: {
outDir: "build",
sourcemap: true, // for Sentry
},
plugins: [react()],
plugins: [
react(),
// Sentry vite plugin goes after all other plugins
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: "ceph",
project: "pulpito-ng",
url: "https://sentry.ceph.com/",
}),
],
server: {
port: 8081,
},
Expand Down

0 comments on commit 9e6f78c

Please sign in to comment.