Skip to content

Commit

Permalink
fix(rum): use new bundles domain
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Jan 14, 2025
1 parent 453a537 commit ea4175b
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tools/oversight/elements/incognito-checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function fetchDomainKey(domain) {
if (domain.endsWith(':all') && domain !== 'aem.live:all') {
([org] = domain.split(':'));
}
const issueResp = await fetch(`https://rum.fastly-aem.page/${org ? `orgs/${org}/key` : `domainkey/${domain}`}`, {
const issueResp = await fetch(`https://bundles.aem.page/${org ? `orgs/${org}/key` : `domainkey/${domain}`}`, {
headers: {
authorization: `Bearer ${auth}`,
},
Expand All @@ -27,7 +27,7 @@ async function fetchDomainKey(domain) {
const y = n.getFullYear();
const m = String(n.getMonth() + 1).padStart(2, '0');
const d = String(n.getDate()).padStart(2, '0');
const probeResp = await fetch(`https://rum.fastly-aem.page/bundles/${domain}/${y}/${m}/${d}?domainkey=open`);
const probeResp = await fetch(`https://bundles.aem.page/bundles/${domain}/${y}/${m}/${d}?domainkey=open`);
if (probeResp.status === 200) {
return 'open';
}
Expand Down
2 changes: 1 addition & 1 deletion tools/oversight/elements/url-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class URLSelector extends HTMLElement {
input.addEventListener('mouseover', () => {
const token = getPersistentToken();
if (token && !isIncognitoMode()) {
fetch('https://rum.fastly-aem.page/domains?suggested=true', {
fetch('https://bundles.aem.page/domains?suggested=true', {
headers: {
accept: 'application/json',
authorization: `Bearer ${token}`,
Expand Down
2 changes: 1 addition & 1 deletion tools/oversight/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { addCalculatedProps } = utils;
export default class DataLoader {
constructor() {
this.cache = new Map();
this.API_ENDPOINT = 'https://rum.fastly-aem.page';
this.API_ENDPOINT = 'https://bundles.aem.page';
this.DOMAIN = 'www.thinktanked.org';
this.DOMAIN_KEY = '';
this.ORG = undefined;
Expand Down
2 changes: 1 addition & 1 deletion tools/oversight/slicer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const {
/* globals */
let DOMAIN = 'www.thinktanked.org';

const BUNDLER_ENDPOINT = 'https://rum.fastly-aem.page';
const BUNDLER_ENDPOINT = 'https://bundles.aem.page';
// const BUNDLER_ENDPOINT = 'http://localhost:3000';
const API_ENDPOINT = BUNDLER_ENDPOINT;

Expand Down
2 changes: 1 addition & 1 deletion tools/rum/admin/store.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const API = 'https://rum.fastly-aem.page';
const API = 'https://bundles.aem.page';

let token;
const fetchAPI = async (path, opts = {}) => fetch(`${API}${path}`, {
Expand Down
4 changes: 2 additions & 2 deletions tools/rum/elements/incognito-checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function fetchDomainKey(domain) {
if (domain.endsWith(':all') && domain !== 'aem.live:all') {
([org] = domain.split(':'));
}
const issueResp = await fetch(`https://rum.fastly-aem.page/${org ? `orgs/${org}/key` : `domainkey/${domain}`}`, {
const issueResp = await fetch(`https://bundles.aem.page/${org ? `orgs/${org}/key` : `domainkey/${domain}`}`, {
headers: {
authorization: `Bearer ${auth}`,
},
Expand All @@ -27,7 +27,7 @@ async function fetchDomainKey(domain) {
const y = n.getFullYear();
const m = String(n.getMonth() + 1).padStart(2, '0');
const d = String(n.getDate()).padStart(2, '0');
const probeResp = await fetch(`https://rum.fastly-aem.page/bundles/${domain}/${y}/${m}/${d}?domainkey=open`);
const probeResp = await fetch(`https://bundles.aem.page/bundles/${domain}/${y}/${m}/${d}?domainkey=open`);
if (probeResp.status === 200) {
return 'open';
}
Expand Down
2 changes: 1 addition & 1 deletion tools/rum/elements/url-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class URLSelector extends HTMLElement {
input.addEventListener('mouseover', () => {
const token = getPersistentToken();
if (token && !isIncognitoMode()) {
fetch('https://rum.fastly-aem.page/domains?suggested=true', {
fetch('https://bundles.aem.page/domains?suggested=true', {
headers: {
accept: 'application/json',
authorization: `Bearer ${token}`,
Expand Down
2 changes: 1 addition & 1 deletion tools/rum/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { addCalculatedProps } = utils;
export default class DataLoader {
constructor() {
this.cache = new Map();
this.API_ENDPOINT = 'https://rum.fastly-aem.page';
this.API_ENDPOINT = 'https://bundles.aem.page';
this.DOMAIN = 'www.thinktanked.org';
this.DOMAIN_KEY = '';
this.ORG = undefined;
Expand Down
2 changes: 1 addition & 1 deletion tools/rum/slicer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const {
/* globals */
let DOMAIN = 'www.thinktanked.org';

const BUNDLER_ENDPOINT = 'https://rum.fastly-aem.page';
const BUNDLER_ENDPOINT = 'https://bundles.aem.page';
// const BUNDLER_ENDPOINT = 'http://localhost:3000';
const API_ENDPOINT = BUNDLER_ENDPOINT;

Expand Down

0 comments on commit ea4175b

Please sign in to comment.