chore: test deploy snapshot
This commit is contained in:
@@ -256,7 +256,7 @@ export function getCurrentPlayAppEnvironment(): PlayAppEnvironment {
|
|||||||
return 'prod';
|
return 'prod';
|
||||||
}
|
}
|
||||||
|
|
||||||
const hostname = window.location.hostname;
|
const hostname = window.location.hostname.toLowerCase();
|
||||||
const isLocalHost =
|
const isLocalHost =
|
||||||
hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '::1' || hostname === '0.0.0.0';
|
hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '::1' || hostname === '0.0.0.0';
|
||||||
|
|
||||||
@@ -264,6 +264,10 @@ export function getCurrentPlayAppEnvironment(): PlayAppEnvironment {
|
|||||||
return 'test';
|
return 'test';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hostname.includes('test')) {
|
||||||
|
return 'test';
|
||||||
|
}
|
||||||
|
|
||||||
if (hostname.includes('preview')) {
|
if (hostname.includes('preview')) {
|
||||||
return 'preview';
|
return 'preview';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user