-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-deployment-status.html
More file actions
82 lines (75 loc) · 2.99 KB
/
test-deployment-status.html
File metadata and controls
82 lines (75 loc) · 2.99 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
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Deployment Status Test</title>
<style>
body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; }
.status { padding: 10px; margin: 10px 0; border-radius: 4px; }
.success { background: #d4edda; color: #155724; }
.error { background: #f8d7da; color: #721c24; }
.info { background: #d1ecf1; color: #0c5460; }
</style>
</head>
<body>
<h1>🔍 Deployment Status Check</h1>
<div id="status"></div>
<script>
function addStatus(message, type = 'info') {
const status = document.getElementById('status');
const div = document.createElement('div');
div.className = `status ${type}`;
div.innerHTML = `<strong>${new Date().toLocaleTimeString()}</strong> - ${message}`;
status.appendChild(div);
}
// Check if we're on the correct domain
const currentDomain = window.location.hostname;
const expectedDomain = '10s25.github.io';
if (currentDomain === expectedDomain) {
addStatus(`✅ Correct domain: ${currentDomain}`, 'success');
} else {
addStatus(`❌ Wrong domain: ${currentDomain} (expected: ${expectedDomain})`, 'error');
}
// Check current path
const currentPath = window.location.pathname;
addStatus(`📍 Current path: ${currentPath}`, 'info');
// Check if we can load the main app assets
fetch('./assets/index-DE_QOLij.js')
.then(response => {
if (response.ok) {
addStatus('✅ Main app assets are accessible', 'success');
} else {
addStatus(`❌ Main app assets not accessible: ${response.status}`, 'error');
}
})
.catch(error => {
addStatus(`❌ Error loading main app assets: ${error.message}`, 'error');
});
// Check .nojekyll file
fetch('./.nojekyll')
.then(response => {
if (response.ok) {
addStatus('✅ .nojekyll file is present', 'success');
} else {
addStatus('❌ .nojekyll file is missing', 'error');
}
})
.catch(error => {
addStatus(`❌ Error checking .nojekyll: ${error.message}`, 'error');
});
// Check 404.html
fetch('./404.html')
.then(response => {
if (response.ok) {
addStatus('✅ 404.html file is present', 'success');
} else {
addStatus('❌ 404.html file is missing', 'error');
}
})
.catch(error => {
addStatus(`❌ Error checking 404.html: ${error.message}`, 'error');
});
</script>
</body>
</html>