File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
website/src/bootstrapping Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,10 @@ import { isBrowserSupported } from './browser';
6
6
7
7
// Decide Sentry environment based on some basic heuristics.
8
8
function sentryEnv ( ) : string | undefined {
9
- if ( VERCEL_ENV === 'preview' ) return 'preview' ;
10
- if ( VERCEL_ENV === 'production' ) {
11
- if ( VERCEL_GIT_COMMIT_REF === 'production' ) return 'production' ;
12
- if ( window . location . host === 'nusmods.com' ) return 'production' ;
9
+ if ( VERCEL_ENV === 'production' ) return 'production' ;
10
+ if ( VERCEL_ENV === 'preview' ) {
13
11
if ( VERCEL_GIT_COMMIT_REF === 'master' ) return 'staging' ;
14
- // Don't expect Vercel production deployments to be made from other
15
- // branches.
12
+ return 'preview' ;
16
13
}
17
14
return 'development' ;
18
15
}
You can’t perform that action at this time.
0 commit comments