We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f049eae commit 0de2a92Copy full SHA for 0de2a92
packages/app/src/app/overmind/internalActions.ts
@@ -98,9 +98,10 @@ export const signInGithub: Action<
98
{ useExtraScopes: boolean },
99
Promise<string>
100
> = ({ effects }, options) => {
101
- const authPath = process.env.LOCAL_SERVER
102
- ? '/auth/dev'
103
- : `/auth/github${options.useExtraScopes ? '?scope=user:email,repo' : ''}`;
+ const authPath =
+ process.env.LOCAL_SERVER || 'STAGING_BRANCH' in process.env
+ ? '/auth/dev'
104
+ : `/auth/github${options.useExtraScopes ? '?scope=user:email,repo' : ''}`;
105
106
const popup = effects.browser.openPopup(authPath, 'sign in');
107
0 commit comments