File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ export CODER_OIDC_REDIRECT_URI="$BASE_URL/api/v2/users/oidc/callback"
15
15
export CODER_OIDC_LOGOUT_URI = " https://oidc.logout.url"
16
16
export CODER_OIDC_TOKEN_PATH = " /home/ubuntu/.coder/tokens"
17
17
18
- # if VITE_IS_CI_BUILD variable is true, CODER_DISABLE_PASSWORD_AUTH variable must be false
19
- export VITE_IS_CI_BUILD = true
18
+ # if VITE_DISABLE_EXTERNAL_LOGIN_PAGE variable is true, CODER_DISABLE_PASSWORD_AUTH variable must be false
19
+ export VITE_DISABLE_EXTERNAL_LOGIN_PAGE = true
20
20
export CODER_DISABLE_PASSWORD_AUTH = false
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ interface ViteTypeOptions {
5
5
}
6
6
7
7
interface ImportMetaEnv {
8
- readonly VITE_IS_CI_BUILD : string
8
+ readonly VITE_DISABLE_EXTERNAL_LOGIN_PAGE : string
9
9
}
10
10
11
11
interface ImportMeta {
Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ export const LoginPage: FC = () => {
71
71
}
72
72
}
73
73
74
- const isCI = import . meta. env . VITE_IS_CI_BUILD === "true"
74
+ const disableExternalLoginPage = import . meta. env . VITE_DISABLE_EXTERNAL_LOGIN_PAGE === "true" ;
75
75
76
- if ( ! isSignedIn && ! isCI ) {
76
+ if ( ! isSignedIn && ! disableExternalLoginPage ) {
77
77
window . location . replace ( `https://heaan.io` ) ;
78
78
return null ;
79
79
}
You can’t perform that action at this time.
0 commit comments