Skip to content

Commit

Permalink
chore(hub-discussions): update default discussions api url to production
Browse files Browse the repository at this point in the history
  • Loading branch information
Chase Gruber authored Jul 26, 2021
1 parent 9215213 commit fc3f3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/discussions/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function apiRequest<T>(
// NOTE: this should default to the prod url once deployed and microservice root URLs
// are normalized: https://github.com/Esri/hub.js/pull/479#discussion_r607866561
const apiBase =
options.hubApiUrl || "https://hubqa.arcgis.com/api/discussions/v1";
options.hubApiUrl || "https://hub.arcgis.com/api/discussions/v1";

if (options.params) {
if (options.httpMethod === "GET") {
Expand Down
2 changes: 1 addition & 1 deletion packages/discussions/test/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("authenticateRequest", () => {
describe("apiRequest", () => {
const response = { ok: true };

const hubApiUrl = "https://hubqa.arcgis.com/api/discussions/v1";
const hubApiUrl = "https://hub.arcgis.com/api/discussions/v1";
const url = "foo";

let expectedOpts: RequestInit;
Expand Down

0 comments on commit fc3f3d0

Please sign in to comment.