mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-14 09:13:01 +08:00
feat(k2): add k2 as valid env
This commit is contained in:
parent
d4b7f3ee15
commit
5a63b377be
3 changed files with 6 additions and 1 deletions
2
src/K2
2
src/K2
|
@ -1 +1 @@
|
|||
Subproject commit 8efd4f79356885c446f1f59f79344241f32af212
|
||||
Subproject commit 5906815ff6a3e6d797182547a8f7b2b848ac9857
|
|
@ -15,6 +15,8 @@ class EdgehillAPI {
|
|||
this.APIRoot = "https://edgehill-experimental.nylas.com";
|
||||
} else if (env === 'staging') {
|
||||
this.APIRoot = "https://n1-auth-staging.nylas.com";
|
||||
} else if (env === 'k2') {
|
||||
this.APIRoot = "http://localhost:5100";
|
||||
} else {
|
||||
this.APIRoot = "https://n1-auth.nylas.com";
|
||||
}
|
||||
|
|
|
@ -86,6 +86,9 @@ class NylasAPI
|
|||
@AppID = 'c5dis00do2vki9ib6hngrjs18'
|
||||
@APIRoot = 'https://api-staging-experimental.nylas.com'
|
||||
@pluginsSupported = true
|
||||
else if env in ['k2']
|
||||
@AppID = 'k2'
|
||||
@APIRoot = 'http://localhost:5100'
|
||||
else if env in ['custom', 'local']
|
||||
@AppID = NylasEnv.config.get('syncEngine.AppID') or 'n/a'
|
||||
@APIRoot = NylasEnv.config.get('syncEngine.APIRoot') or 'http://localhost:5555'
|
||||
|
|
Loading…
Reference in a new issue