File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 53
53
54
54
async function validateCustomDomain ( ) {
55
55
const origin = location . origin
56
- if ( origin !== "%ILLA_BUILDER_URL%" ) {
56
+ if (
57
+ "%ILLA_INSTANCE_ID%" === "CLOUD" &&
58
+ origin !== "%ILLA_BUILDER_URL%"
59
+ ) {
57
60
window . customDomain = location . host
58
61
try {
59
62
const response = await fetch (
Original file line number Diff line number Diff line change 1
1
import { ILLAMixpanel } from "@illa-public/mixpanel-utils"
2
- import { initDateReport , initDayjs , isCloudVersion } from "@illa-public/utils"
2
+ import { initDateReport , initDayjs } from "@illa-public/utils"
3
3
import { LicenseInfo } from "@mui/x-data-grid-premium"
4
4
import * as Sentry from "@sentry/react"
5
5
import { StrictMode } from "react"
34
34
} )
35
35
}
36
36
37
- if ( isCloudVersion ) {
37
+ if ( import . meta . env . ILLA_MUI_LICENSE ) {
38
38
LicenseInfo . setLicenseKey ( import . meta. env . ILLA_MUI_LICENSE )
39
39
}
40
40
You can’t perform that action at this time.
0 commit comments