mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
083373a24f
- Add Redis architecture implementation - Update browser extension functionality - Clean up deprecated files and documentation - Enhance backend handlers for auth, messages, search - Add new configuration options and settings - Update Docker and deployment configurations
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Demo Mode Test</title>
|
|
</head>
|
|
<body>
|
|
<h1>Demo Mode Test</h1>
|
|
<div id="test-results"></div>
|
|
|
|
<script>
|
|
// Test environment variable injection
|
|
console.log('window.ENV:', window.ENV);
|
|
console.log('import.meta.env:', import.meta.env);
|
|
|
|
// Test demo mode detection
|
|
const buildTimeResult = import.meta.env.VITE_DEMO_MODE === 'true';
|
|
const runtimeResult = window.ENV?.VITE_DEMO_MODE === 'true';
|
|
const result = buildTimeResult || runtimeResult;
|
|
|
|
document.getElementById('test-results').innerHTML = `
|
|
<h2>Test Results:</h2>
|
|
<p><strong>Build-time VITE_DEMO_MODE:</strong> ${import.meta.env.VITE_DEMO_MODE}</p>
|
|
<p><strong>Runtime window.ENV.VITE_DEMO_MODE:</strong> ${window.ENV?.VITE_DEMO_MODE}</p>
|
|
<p><strong>Build-time result:</strong> ${buildTimeResult}</p>
|
|
<p><strong>Runtime result:</strong> ${runtimeResult}</p>
|
|
<p><strong>Final result (isEnvDemoMode):</strong> ${result}</p>
|
|
<p><strong>Demo mode active:</strong> ${result ? 'YES ✅' : 'NO ❌'}</p>
|
|
`;
|
|
</script>
|
|
</body>
|
|
</html>
|