Skip to content

Commit

Permalink
enable source map upload for companion app
Browse files Browse the repository at this point in the history
  • Loading branch information
frontendphil committed Jan 21, 2025
1 parent 16bb7ad commit 9088552
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/app-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- run: pnpm install --prefer-offline

- run: pnpm build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

- name: Deploy
id: deploy
Expand Down
1 change: 1 addition & 0 deletions deployables/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@hiogawa/vite-node-miniflare": "0.1.1",
"@playwright/test": "^1.48.1",
"@react-router/dev": "^7.1.1",
"@sentry/vite-plugin": "^3.0.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "14.6.0",
Expand Down
14 changes: 12 additions & 2 deletions deployables/app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { reactRouter } from '@react-router/dev/vite'
import { cloudflareDevProxy } from '@react-router/dev/vite/cloudflare'
import { sentryVitePlugin } from '@sentry/vite-plugin'
import autoprefixer from 'autoprefixer'
import tailwindcss from 'tailwindcss'
import { defineConfig } from 'vite'
Expand All @@ -12,6 +13,7 @@ export default defineConfig(({ isSsrBuild }) => ({
input: './workers/app.ts',
}
: undefined,
sourcemap: true,
},
server: {
port: 3040,
Expand All @@ -26,7 +28,6 @@ export default defineConfig(({ isSsrBuild }) => ({
},
ssr: {
target: 'webworker',
// noExternal: true,
resolve: {
conditions: ['workerd', 'browser'],
},
Expand All @@ -42,5 +43,14 @@ export default defineConfig(({ isSsrBuild }) => ({
},
noExternal: ['@gnosis.pm/zodiac', 'evm-proxy-detection'],
},
plugins: [cloudflareDevProxy(), reactRouter(), tsconfigPaths()],
plugins: [
cloudflareDevProxy(),
reactRouter(),
tsconfigPaths(),
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'gnosis-guild',
project: 'pilot-companion-app',
}),
],
}))
104 changes: 98 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9088552

Please sign in to comment.