Skip to content

Commit

Permalink
chore: setup @sentry/vite-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
shuji-koike committed Jan 27, 2024
1 parent a3668e7 commit 4b7e0fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- uses: ./.github/actions/setup
- run: GOOS=js GOARCH=wasm go build -o ./static/main.wasm .
- run: npx vite build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- run: npx tsx build.ts
working-directory: packages/functions
- uses: google-github-actions/auth@v2
Expand Down
9 changes: 9 additions & 0 deletions vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable import/no-extraneous-dependencies */
import { sentryVitePlugin } from "@sentry/vite-plugin"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"

Expand All @@ -11,5 +12,13 @@ export default defineConfig({
react({
jsxImportSource: "@emotion/react",
}),
process.env["CI"] &&
sentryVitePlugin({
org: "shujikoike",
project: "csgo",
}),
],
build: {
sourcemap: !!process.env["CI"],
},
})

0 comments on commit 4b7e0fc

Please sign in to comment.