l-min-components 1.7.1533 → 1.7.1534

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1533",
3
+ "version": "1.7.1534",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -6,10 +6,11 @@ if (!window.translationCache) {
6
6
  window.translationCache = {};
7
7
  }
8
8
 
9
+ const environment = window.location.hostname.includes("staging")
10
+ ? "learngual-bucket"
11
+ : "learngual-production";
9
12
  const CACHE_DURATION = 60 * 60 * 1000; // 1 hour in milliseconds
10
- const S3_BASE_URL = `https://learngual-bucket.sfo3.digitaloceanspaces.com/${
11
- window.location.hostname.includes("staging") ? "" : "learngual-production/"
12
- }media/media/`;
13
+ const S3_BASE_URL = `https://${environment}.sfo3.digitaloceanspaces.com/${environment}/media/media/`;
13
14
 
14
15
  const useTranslation = (initialSentences = []) => {
15
16
  const value = localStorage?.getItem("defaultLang");