Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mryanshenghong committed Nov 10, 2022
1 parent 918a580 commit 32b39c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"baseUrl": "./",
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
Expand All @@ -13,7 +13,6 @@
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"sourceRoot": "/",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
Expand All @@ -34,5 +33,8 @@
{
"path": "./tsconfig.node.json"
}
],
"exclude": [
"node_modules"
]
}

0 comments on commit 32b39c6

Please sign in to comment.