diff --git a/internal_packages/onboarding/lib/login-page.cjsx b/internal_packages/onboarding/lib/login-page.cjsx index d120c4950..77a2aab0b 100644 --- a/internal_packages/onboarding/lib/login-page.cjsx +++ b/internal_packages/onboarding/lib/login-page.cjsx @@ -76,6 +76,7 @@ class LoginPage extends Page
diff --git a/internal_packages/onboarding/lib/nylas-api-environment-store.coffee b/internal_packages/onboarding/lib/nylas-api-environment-store.coffee index 18efc33bb..46c08c4c8 100644 --- a/internal_packages/onboarding/lib/nylas-api-environment-store.coffee +++ b/internal_packages/onboarding/lib/nylas-api-environment-store.coffee @@ -11,7 +11,7 @@ class NylasApiEnvironmentStore extends NylasStore getEnvironment: -> atom.config.get('env') _setEnvironment: (env) -> - throw new Error("Environment #{env} is not allowed") unless env in ['development', 'staging', 'production'] + throw new Error("Environment #{env} is not allowed") unless env in ['development', 'experimental', 'staging', 'production'] atom.config.set('env', env) @trigger() diff --git a/src/flux/edgehill-api.coffee b/src/flux/edgehill-api.coffee index 5f4482c4e..c8638f05c 100644 --- a/src/flux/edgehill-api.coffee +++ b/src/flux/edgehill-api.coffee @@ -18,6 +18,8 @@ class EdgehillAPI if env is 'development' # @APIRoot = "http://localhost:5009" @APIRoot = "https://edgehill-dev.nylas.com" + else if env is 'experimental' + @APIRoot = "https://edgehill-staging.nylas.com" else if env is 'staging' @APIRoot = "https://edgehill-staging.nylas.com" else diff --git a/src/flux/nylas-api.coffee b/src/flux/nylas-api.coffee index 6123fe969..b3003459a 100644 --- a/src/flux/nylas-api.coffee +++ b/src/flux/nylas-api.coffee @@ -91,6 +91,9 @@ class NylasAPI else if env in ['staging', 'development'] @AppID = '54miogmnotxuo5st254trcmb9' @APIRoot = 'https://api-staging.nylas.com' + else if env in ['experimental'] + @AppID = 'c5dis00do2vki9ib6hngrjs18' + @APIRoot = 'https://api-experimental.nylas.com' current = {@APIToken, @AppID, @APIRoot}