Skip to content

Commit

Permalink
🔧 Enable sentry release
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 11, 2024
1 parent be12649 commit bc4cf7c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
cd:
runs-on: ${{ matrix.os }}
environment: production

strategy:
matrix:
Expand All @@ -28,6 +29,10 @@ jobs:

- name: Generate
run: NUXT_APP_BASE_URL=/${{ github.event.repository.name }}/ yarn generate:production
env:
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
15 changes: 15 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills'

const LikeCoinWalletConnectorCSSPath = '@likecoin/wallet-connector/dist/style.css'

const {
SENTRY_ORG,
SENTRY_PROJECT,
SENTRY_AUTH_TOKEN
} = process.env

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: [
Expand All @@ -18,6 +24,15 @@ export default defineNuxtConfig({
gtag: {
id: 'G-815EFDL3PS'
},
sentry: {
sourceMapsUploadOptions: SENTRY_AUTH_TOKEN
? {
org: SENTRY_ORG,
project: SENTRY_PROJECT,
authToken: SENTRY_AUTH_TOKEN
}
: undefined
},
plugins: ['~/plugins/buffer.ts'],
vite: {
plugins: [
Expand Down

0 comments on commit bc4cf7c

Please sign in to comment.