diff --git a/apps/builder/index.html b/apps/builder/index.html
index 83f70d9705..cc29762940 100644
--- a/apps/builder/index.html
+++ b/apps/builder/index.html
@@ -53,7 +53,10 @@
async function validateCustomDomain() {
const origin = location.origin
- if (origin !== "%ILLA_BUILDER_URL%") {
+ if (
+ "%ILLA_INSTANCE_ID%" === "CLOUD" &&
+ origin !== "%ILLA_BUILDER_URL%"
+ ) {
window.customDomain = location.host
try {
const response = await fetch(
diff --git a/apps/builder/package.json b/apps/builder/package.json
index 7a7cc3c9ac..7fe2727f23 100644
--- a/apps/builder/package.json
+++ b/apps/builder/package.json
@@ -5,7 +5,7 @@
"private": true,
"author": "ILLA Cloud ",
"license": "Apache-2.0",
- "version": "4.5.15",
+ "version": "4.5.16",
"scripts": {
"dev": "vite --strictPort --force",
"build-cloud": "NODE_OPTIONS=--max-old-space-size=12288 vite build --mode cloud",
diff --git a/apps/builder/src/main.tsx b/apps/builder/src/main.tsx
index 286ca948a7..961e45f6d0 100644
--- a/apps/builder/src/main.tsx
+++ b/apps/builder/src/main.tsx
@@ -1,5 +1,5 @@
import { ILLAMixpanel } from "@illa-public/mixpanel-utils"
-import { initDateReport, initDayjs, isCloudVersion } from "@illa-public/utils"
+import { initDateReport, initDayjs } from "@illa-public/utils"
import { LicenseInfo } from "@mui/x-data-grid-premium"
import * as Sentry from "@sentry/react"
import { StrictMode } from "react"
@@ -34,7 +34,7 @@ if (
})
}
-if (isCloudVersion) {
+if (import.meta.env.ILLA_MUI_LICENSE) {
LicenseInfo.setLicenseKey(import.meta.env.ILLA_MUI_LICENSE)
}