Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

chore: update config so extensionUrls can be declared in .env file for local development #237

Merged
merged 4 commits into from
May 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export type Config = {
highSecurity?: RegExp;
};
ip?: string;
extensionURLs?: string[];
extensionUrls?: string[];
extensions?: Extensions;
};
declare global {
Expand Down Expand Up @@ -156,9 +156,8 @@ export default async function loadConfig() {
);
}

if (window.REEARTH_CONFIG?.extensionURLs) {
const urls = window.REEARTH_CONFIG.extensionURLs;
const extensions = getExtensionsFrom(urls);
if (window.REEARTH_CONFIG?.extensionUrls) {
const extensions = getExtensionsFrom(window.REEARTH_CONFIG.extensionUrls);
window.REEARTH_CONFIG.extensions = extensions;
}
}