fix: Enable DevTools on testing domains (*.runfoo.run)
Some checks failed
Deploy to Production / deploy (push) Failing after 0s
Test / backend-test (push) Failing after 0s
Test / frontend-test (push) Failing after 0s

This commit is contained in:
fullsizemalt 2025-12-11 11:08:05 -08:00
parent 4663b0ac86
commit 6808446ff0

View file

@ -28,8 +28,9 @@ export function DevTools() {
const [isLoading, setIsLoading] = useState<string | null>(null);
const [error, setError] = useState<string | null>(null);
// Only show in development or when explicitly enabled
const isDev = import.meta.env.DEV || import.meta.env.VITE_DEV_TOOLS === 'true';
// Show in development, when explicitly enabled, or on testing domains (*.runfoo.run)
const isTestingDomain = typeof window !== 'undefined' && window.location.hostname.endsWith('runfoo.run');
const isDev = import.meta.env.DEV || import.meta.env.VITE_DEV_TOOLS === 'true' || isTestingDomain;
if (!isDev) return null;
const handleQuickLogin = async (devUser: DevUser) => {