Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (62 loc) · 3.17 KB
/
Copy pathindex.html
File metadata and controls
74 lines (62 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<meta name="description" content="Dev Community IO - Where Developers Build the Future" />
<meta name="theme-color" content="#6366f1" />
<!-- Open Graph / Facebook - Default values (will be updated dynamically) -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="DevCommunity" />
<meta property="og:title" content="DevCommunity - Where Developers Build the Future" />
<meta property="og:description" content="Dev Community IO - Where Developers Build the Future" />
<!-- Twitter - Default values (will be updated dynamically) -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="DevCommunity - Where Developers Build the Future" />
<meta name="twitter:description" content="Dev Community IO - Where Developers Build the Future" />
<!-- Favicon - will be updated dynamically from site settings -->
<link rel="icon" type="image/png" href="/icon.png" />
<link rel="shortcut icon" type="image/png" href="/icon.png" />
<!-- PWA Meta Tags -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="Dev Community IO" />
<meta name="mobile-web-app-capable" content="yes" />
<!-- Android Chrome PWA -->
<meta name="application-name" content="Dev Community IO" />
<meta name="theme-color-media" content="(prefers-color-scheme: light)" />
<!-- iOS Safari - will be updated dynamically from site settings -->
<link rel="apple-touch-icon" href="/icon.png" />
<link rel="apple-touch-startup-image" href="/icon.png" />
<!-- PWA Manifest -->
<link rel="manifest" href="/manifest.json" />
<!-- Meta tags for Open Graph (will be updated dynamically) -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Dev Community IO" />
<!-- Title - will be updated dynamically from site settings -->
<title>Dev Community IO</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
// Detect API URL dynamically based on current hostname
(function() {
if (typeof window !== 'undefined') {
const hostname = window.location.hostname;
const isLocalhost = hostname === 'localhost' || hostname === '127.0.0.1';
let apiBaseUrl = 'http://localhost:3333';
if (isLocalhost) {
apiBaseUrl = 'http://localhost:3333';
} else {
// For IP addresses like 10.219.158.234:3334, use 10.219.158.234:3333
apiBaseUrl = `http://${hostname}:3333`;
}
// Store API URL in window for React app to use
window.__API_BASE_URL__ = apiBaseUrl;
console.log('🌐 Detected API URL:', apiBaseUrl);
}
})();
</script>
</body>
</html>