diff --git a/internal_packages/link-tracking/lib/link-tracking-constants.es6 b/internal_packages/link-tracking/lib/link-tracking-constants.es6 index 8053c616b..963fb2368 100644 --- a/internal_packages/link-tracking/lib/link-tracking-constants.es6 +++ b/internal_packages/link-tracking/lib/link-tracking-constants.es6 @@ -2,4 +2,4 @@ import plugin from '../package.json' export const PLUGIN_NAME = plugin.title export const PLUGIN_ID = plugin.appId[NylasEnv.config.get("env")]; -export const PLUGIN_URL = "https://edgehill-staging.nylas.com"; +export const PLUGIN_URL = plugin.serverUrl[NylasEnv.config.get("env")]; diff --git a/internal_packages/link-tracking/package.json b/internal_packages/link-tracking/package.json index 3ed8ca93c..8e5d577c2 100644 --- a/internal_packages/link-tracking/package.json +++ b/internal_packages/link-tracking/package.json @@ -6,6 +6,10 @@ "staging": "2lsb6ounfysvwcdzxzy3bzsuh", "production": "a1ec1s3ieddpik6lpob74hmcq" }, + "serverUrl": { + "staging": "https://link-staging.nylas.com", + "production": "https://link.nylas.com" + }, "title": "Link Tracking", "description": "Tracks whether links in an email have been clicked by recipients", diff --git a/internal_packages/open-tracking/lib/open-tracking-constants.es6 b/internal_packages/open-tracking/lib/open-tracking-constants.es6 index 8053c616b..963fb2368 100644 --- a/internal_packages/open-tracking/lib/open-tracking-constants.es6 +++ b/internal_packages/open-tracking/lib/open-tracking-constants.es6 @@ -2,4 +2,4 @@ import plugin from '../package.json' export const PLUGIN_NAME = plugin.title export const PLUGIN_ID = plugin.appId[NylasEnv.config.get("env")]; -export const PLUGIN_URL = "https://edgehill-staging.nylas.com"; +export const PLUGIN_URL = plugin.serverUrl[NylasEnv.config.get("env")]; diff --git a/internal_packages/open-tracking/package.json b/internal_packages/open-tracking/package.json index 26ad9e2ed..f1c2717cf 100644 --- a/internal_packages/open-tracking/package.json +++ b/internal_packages/open-tracking/package.json @@ -6,6 +6,10 @@ "staging": "3i2bws091xrj7fpb1aqt2tud6", "production": "1hnytbkg4wd1ahodatwxdqlb5" }, + "serverUrl": { + "staging": "https://link-staging.nylas.com", + "production": "https://link.nylas.com" + }, "title": "Open Tracking", "description": "Tracks whether email messages have been opened by recipients",