diff --git a/.env b/.env index 2cc8516..d1a26ad 100644 --- a/.env +++ b/.env @@ -2,4 +2,4 @@ NODE_ENV = 'development' VITE_APP_TITLE = 'development' VITE_APP_URL = "http://localhost:3002/api" VITE_APP_RES_URL = 'http://localhost:8080/static' -VITE_APP_SENTRY_DSN = "https://15831ad310604e499e470c5a4e996af9@o4504130447736832.ingest.sentry.io/4504130451079168" \ No newline at end of file +VITE_APP_SENTRY_DSN = "https://15831ad310604e499e470c5a4e996af9@o4504130447736832.ingest.sentry.io/4504130451079168" diff --git a/.env.test b/.env.test index d3bc99d..73a473d 100644 --- a/.env.test +++ b/.env.test @@ -1,3 +1,3 @@ NODE_ENV = 'test' VUE_APP_TITLE = 'test-build' -VUE_APP_URL = "http://localhost:3002/api" \ No newline at end of file +VUE_APP_URL = "http://localhost:3002/api" diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 1b65a86..351ea70 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -31,6 +31,8 @@ jobs: curl -sL https://sentry.io/get-cli/ | bash export VERSION=$(echo `sentry-cli releases propose-version`) echo "$VERSION" + sentry-cli releases new "$VERSION" + sentry-cli releases set-commits --auto "$VERSION" sentry-cli releases files "$VERSION" upload-sourcemaps ./dist --url-prefix='http://blog.yanshenghong.com/' find ./dist -name "*.map" -type f -print -exec rm -rf {} \; sentry-cli releases finalize "$VERSION" diff --git a/src/main.ts b/src/main.ts index 1862767..9e1cf95 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,6 +22,7 @@ Sentry.init({ app, dsn: import.meta.env.VITE_APP_SENTRY_DSN, attachProps: true, + release: `3.0.1`, integrations: [ new BrowserTracing({ routingInstrumentation: Sentry.vueRouterInstrumentation(router),