fix: Enable DevTools on testing domains (*.runfoo.run)
This commit is contained in:
parent
4663b0ac86
commit
6808446ff0
1 changed files with 5 additions and 4 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue