feat: add sentry sourcemap upload
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
||||
import { resolve } from "path";
|
||||
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [react(), sentryVitePlugin({
|
||||
org: "sentry",
|
||||
project: "ds-viewer",
|
||||
url: "https://sentry.yoshino-s.xyz/"
|
||||
})],
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
"@/": `${resolve(__dirname, "src")}/`,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
build: {
|
||||
sourcemap: true
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user