chore: set release version in sentry
This commit is contained in:
parent
ca50230731
commit
6be63f984c
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "woj-ui",
|
"name": "woj-ui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
@ -24,6 +24,7 @@ Sentry.init({
|
|||||||
import.meta.env.MODE === "development"
|
import.meta.env.MODE === "development"
|
||||||
? "" // disable Sentry in development
|
? "" // disable Sentry in development
|
||||||
: "https://903205e5bdddd0bb8f7625a63b161764@o4506423190355968.ingest.sentry.io/4506428723757056",
|
: "https://903205e5bdddd0bb8f7625a63b161764@o4506423190355968.ingest.sentry.io/4506428723757056",
|
||||||
|
release: "woj-ui@" + import.meta.env.PACKAGE_VERSION,
|
||||||
environment: import.meta.env.MODE,
|
environment: import.meta.env.MODE,
|
||||||
integrations: [
|
integrations: [
|
||||||
new Sentry.BrowserTracing({
|
new Sentry.BrowserTracing({
|
||||||
|
@ -4,7 +4,11 @@
|
|||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowSyntheticDefaultImports": true
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"resolveJsonModule": true
|
||||||
},
|
},
|
||||||
"include": ["vite.config.ts"]
|
"include": [
|
||||||
|
"vite.config.ts",
|
||||||
|
"./package.json"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
import react from "@vitejs/plugin-react-swc";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
||||||
import react from "@vitejs/plugin-react-swc";
|
import packageJson from "./package.json";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -13,4 +14,7 @@ export default defineConfig({
|
|||||||
project: "woj-ui",
|
project: "woj-ui",
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
define: {
|
||||||
|
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user