Skip to content

Commit 3055e58

Browse files
authored
fix: redirect to CLOUD but not for dev environments (#4796)
1 parent 591fbbc commit 3055e58

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Signin.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
CLOUD,
2727
CLOUD_LOGIN_PATHNAME,
2828
CLOUD_SIGNIN_PATHNAME,
29+
CLOUD_URL,
2930
} from 'src/shared/constants'
3031

3132
// Types
@@ -114,8 +115,12 @@ export class Signin extends PureComponent<Props, State> {
114115
clearInterval(this.intervalID)
115116

116117
if (CLOUD) {
117-
if (isFlagEnabled('useQuartzLogin')) {
118-
window.location.reload()
118+
if (
119+
isFlagEnabled('useQuartzLogin') &&
120+
process.env.NODE_ENV &&
121+
process.env.NODE_ENV !== 'development'
122+
) {
123+
window.location.href = CLOUD_URL
119124
return
120125
}
121126

0 commit comments

Comments
 (0)