Skip to content

Commit d074b2e

Browse files
authored
Enable Dev Auth for PR Builds (#2825)
* Test pr build * Change check of PR env var * Change check
1 parent f5800da commit d074b2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/app/src/app/overmind/internalActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const signInGithub: Action<
9999
Promise<string>
100100
> = ({ effects }, options) => {
101101
const authPath =
102-
process.env.LOCAL_SERVER || 'STAGING_BRANCH' in process.env
102+
process.env.LOCAL_SERVER || process.env.STAGING
103103
? '/auth/dev'
104104
: `/auth/github${options.useExtraScopes ? '?scope=user:email,repo' : ''}`;
105105

packages/app/src/app/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const RoutesComponent: React.FC = () => {
112112
<Route path="/patron" component={Patron} />
113113
<Route path="/cli/login" component={CLI} />
114114
<Route path="/auth/zeit" component={ZeitSignIn} />
115-
{(process.env.LOCAL_SERVER || 'STAGING_BRANCH' in process.env) && (
115+
{(process.env.LOCAL_SERVER || process.env.STAGING) && (
116116
<Route path="/auth/dev" component={DevAuthPage} />
117117
)}
118118
{process.env.NODE_ENV === `development` && (

0 commit comments

Comments
 (0)