Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita369b10

Browse files
committed
New sentry project, only configure sentry in github build
1 parent3055e92 commita369b10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎.github/workflows/workflow.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
id:build
2020
env:
2121
REACT_APP_FEEDBACK_GITHUB_TOKEN:${{ secrets.REACT_APP_FEEDBACK_GITHUB_TOKEN }}
22+
REACT_APP_SENTRY_DSN:https://37b1f01452b54bf4a0fe88656070998f@o871617.ingest.sentry.io/5824691
2223
run:./full_build.sh
2324
-name:Test
2425
run:./ci_test.sh

‎frontend/src/store.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ import {bookReducer, navigate} from "./book/store";
1212
importcreateSentryMiddlewarefrom"redux-sentry-middleware";
1313
import*asSentryfrom"@sentry/browser";
1414

15-
if(process.env.NODE_ENV!=='development'){
15+
constsentryDsn=process.env.REACT_APP_SENTRY_DSN;
16+
if(sentryDsn){
1617
console.log('Configuring sentry');
17-
Sentry.init({dsn:'https://8eeb5d4141a64fb38b6dac0c8bba9de3@sentry.io/5170673'});
18+
Sentry.init({dsn:sentryDsn});
1819
}
1920

2021
const{delegateReducer, stateSet}=redact("root");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp