diff --git a/src/views/play/apps/apps/appsRegistry.tsx b/src/views/play/apps/apps/appsRegistry.tsx index a7be538..5efdf12 100644 --- a/src/views/play/apps/apps/appsRegistry.tsx +++ b/src/views/play/apps/apps/appsRegistry.tsx @@ -256,7 +256,7 @@ export function getCurrentPlayAppEnvironment(): PlayAppEnvironment { return 'prod'; } - const hostname = window.location.hostname; + const hostname = window.location.hostname.toLowerCase(); const isLocalHost = hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '::1' || hostname === '0.0.0.0'; @@ -264,6 +264,10 @@ export function getCurrentPlayAppEnvironment(): PlayAppEnvironment { return 'test'; } + if (hostname.includes('test')) { + return 'test'; + } + if (hostname.includes('preview')) { return 'preview'; }