Skip to content

Commit

Permalink
Swap env for urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-yeager committed Feb 14, 2024
1 parent b7586d7 commit 7e3d2d1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/cli/lib/DevServerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ const {
stopPortManagerServer,
requestPorts,
} = require('@hubspot/local-dev-lib/portManager');
const { getAccountConfig } = require('@hubspot/local-dev-lib/config');
const {
getHubSpotApiOrigin,
getHubSpotWebsiteOrigin,
} = require('@hubspot/local-dev-lib/urls');
const httpClient = require('@hubspot/local-dev-lib/http');
const { getAccountConfig } = require('@hubspot/local-dev-lib/config');

const i18nKey = 'cli.lib.DevServerManager';

Expand Down Expand Up @@ -78,7 +82,10 @@ class DevServerManager {
onUploadRequired,
promptUser,
logger,
env,
urls: {
api: getHubSpotApiOrigin(env),
web: getHubSpotWebsiteOrigin(env),
},
});
}
}
Expand Down

0 comments on commit 7e3d2d1

Please sign in to comment.