From 32b39c650f7bfabca52c548164cb21ca31057884 Mon Sep 17 00:00:00 2001 From: mryanshenghong Date: Thu, 10 Nov 2022 13:53:53 -0500 Subject: [PATCH] fix --- .github/workflows/deployment.yml | 6 +++--- src/main.ts | 2 ++ tsconfig.json | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 273464c..afd61ea 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -31,10 +31,10 @@ 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 files $VERSION upload-sourcemaps ./dist --url-prefix='http://blog.yanshenghong.com/' + sentry-cli releases new 3.0.0 + sentry-cli releases files 3.0.0 upload-sourcemaps ./dist --url-prefix='http://blog.yanshenghong.com/' find ./dist -name "*.map" -type f -print -exec rm -rf {} \; - sentry-cli releases finalize $VERSION + sentry-cli releases finalize 3.0.0 - name: Deployment diff --git a/src/main.ts b/src/main.ts index 077346d..9ccfa0f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,11 +20,13 @@ const app = createApp(App) Sentry.init({ app, dsn: import.meta.env.VITE_APP_SENTRY_DSN, + attachProps: true, integrations: [ new BrowserTracing({ routingInstrumentation: Sentry.vueRouterInstrumentation(router), }), ], + release: "3.0.0", environment: import.meta.env.NODE_ENV, tracesSampleRate: 1.0, }); diff --git a/tsconfig.json b/tsconfig.json index 532e560..723ee50 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "baseUrl": "./", + "baseUrl": ".", "paths": { "@/*": [ "src/*" @@ -13,7 +13,6 @@ "strict": true, "jsx": "preserve", "sourceMap": true, - "sourceRoot": "/", "resolveJsonModule": true, "isolatedModules": true, "esModuleInterop": true, @@ -34,5 +33,8 @@ { "path": "./tsconfig.node.json" } + ], + "exclude": [ + "node_modules" ] } \ No newline at end of file