mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Be more specific when detecting sandbox (#8432)
* Be more specific when detecting sandbox * Fix typo in domain
This commit is contained in:
parent
1f39b73b2d
commit
8185254088
@ -44,7 +44,7 @@ export const AuthenticatedRoutes = ({
|
||||
// this works with App.tsx. if authToken does
|
||||
// exist, user state is checked and fetched if null
|
||||
if (!authToken()) {
|
||||
if (window.location.hostname.includes("sandbox")) {
|
||||
if (window.location.hostname.includes(".sandbox.fleetdm.com")) {
|
||||
window.location.href = "https://www.fleetdm.com/try-fleet/login";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user