Skip to content

Commit 6feb471

Browse files
committed
Merge branch 'beta' into release/4.5.16
2 parents 2a11f45 + 18d78c9 commit 6feb471

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

apps/builder/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353

5454
async function validateCustomDomain() {
5555
const origin = location.origin
56-
if (origin !== "%ILLA_BUILDER_URL%") {
56+
if (
57+
"%ILLA_INSTANCE_ID%" === "CLOUD" &&
58+
origin !== "%ILLA_BUILDER_URL%"
59+
) {
5760
window.customDomain = location.host
5861
try {
5962
const response = await fetch(

apps/builder/src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ILLAMixpanel } from "@illa-public/mixpanel-utils"
2-
import { initDateReport, initDayjs, isCloudVersion } from "@illa-public/utils"
2+
import { initDateReport, initDayjs } from "@illa-public/utils"
33
import { LicenseInfo } from "@mui/x-data-grid-premium"
44
import * as Sentry from "@sentry/react"
55
import { StrictMode } from "react"
@@ -34,7 +34,7 @@ if (
3434
})
3535
}
3636

37-
if (isCloudVersion) {
37+
if (import.meta.env.ILLA_MUI_LICENSE) {
3838
LicenseInfo.setLicenseKey(import.meta.env.ILLA_MUI_LICENSE)
3939
}
4040

0 commit comments

Comments
 (0)