From 4e6e73dbd544580378ce26edfa1122a6d3234800 Mon Sep 17 00:00:00 2001 From: how2ice Date: Fri, 29 May 2026 18:51:12 +0900 Subject: [PATCH] chore: test deploy snapshot --- src/views/play/apps/apps/appsRegistry.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'; }