diff --git a/native/account/siwe-panel.react.js b/native/account/siwe-panel.react.js --- a/native/account/siwe-panel.react.js +++ b/native/account/siwe-panel.react.js @@ -19,10 +19,10 @@ import { NavContext } from '../navigation/navigation-context'; import { useSelector } from '../redux/redux-utils'; import { nativeLogInExtraInfoSelector } from '../selectors/account-selectors'; +import { defaultLandingURLPrefix } from '../utils/url-utils'; import { setNativeCredentials } from './native-credentials'; -const commSIWE = __DEV__ - ? 'http://localhost/commlanding/siwe' - : 'https://comm.app/siwe'; + +const commSIWE = `${defaultLandingURLPrefix}/siwe`; type BaseProps = { +setActiveAlert: (activeAlert: boolean) => void, diff --git a/native/utils/url-utils.js b/native/utils/url-utils.js --- a/native/utils/url-utils.js +++ b/native/utils/url-utils.js @@ -10,6 +10,7 @@ const localhostHostnameFromAndroidEmulator = '10.0.2.2'; const productionNodeServerURL = 'https://squadcal.org'; +const productionURL = 'https://comm.app'; const devIsEmulator: boolean = __DEV__ && DeviceInfo.isEmulatorSync(); function getDevServerHostname(): string { @@ -48,12 +49,17 @@ ? getDevNodeServerURL() : productionNodeServerURL; +const defaultLandingURLPrefix: string = __DEV__ + ? `${getDevNodeServerURL()}landing` + : productionURL; + const natNodeServer: string = getDevNodeServerURLFromHostname(natDevHostname); const setCustomServer = 'SET_CUSTOM_SERVER'; export { defaultURLPrefix, + defaultLandingURLPrefix, getDevServerHostname, nodeServerOptions, natNodeServer,