Skip to content

Commit cc474b0

Browse files
committed
fix sentry dsn stuffs
1 parent 879c88c commit cc474b0

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/api_cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
- uses: superfly/flyctl-actions/setup-flyctl@master
17-
- run: flyctl deploy --config apps/api/fly.toml --remote-only
17+
- run: flyctl deploy --config apps/api/fly.toml --remote-only -e APP_REVISION=${{ github.sha }}
1818
env:
1919
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

.github/workflows/desktop_cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132132
AM_API_KEY: ${{ matrix.include_am && secrets.AM_API_KEY || '' }}
133133
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
134-
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
134+
SENTRY_DSN: ${{ secrets.SENTRY_DSN_HYPRNOTE_2 }}
135135
APPLE_ID: ${{ secrets.APPLE_ID }}
136136
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
137137
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}

apps/api/src/instrument.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as Sentry from "@sentry/bun";
22

33
Sentry.init({
4-
dsn: "https://a4abe058104d9e2142abe78f702e3de9@o4506190168522752.ingest.us.sentry.io/4508570874937344",
4+
dsn: Bun.env.SENTRY_DSN,
5+
release: `hyprnote-api@${Bun.env.APP_REVISION ?? "local"}`,
56
sampleRate: 1.0,
67
});

0 commit comments

Comments
 (0)