Move health check to /health directory for NPM forward auth exclusion 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
994 B
HTML
31 lines
994 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Health Check</title>
|
|
<style>
|
|
body { font-family: monospace; padding: 20px; background: #1a1a1a; color: #0f0; }
|
|
.healthy { color: #0f0; }
|
|
.error { color: #f00; }
|
|
pre { background: #222; padding: 15px; border-radius: 5px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1 id="status">Loading...</h1>
|
|
<pre id="data"></pre>
|
|
<script>
|
|
fetch('./health.json')
|
|
.then(r => r.json())
|
|
.then(data => {
|
|
document.getElementById('status').textContent = data.status?.toUpperCase() || 'OK';
|
|
document.getElementById('status').className = data.status === 'healthy' ? 'healthy' : 'error';
|
|
document.getElementById('data').textContent = JSON.stringify(data, null, 2);
|
|
})
|
|
.catch(err => {
|
|
document.getElementById('status').textContent = 'ERROR';
|
|
document.getElementById('status').className = 'error';
|
|
document.getElementById('data').textContent = err.message;
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|