Major refactor: Multi-user Chrome MCP extension with remote server architecture
This commit is contained in:
25
app/remote-server/test-health.js
Normal file
25
app/remote-server/test-health.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Simple health check test
|
||||
*/
|
||||
|
||||
import fetch from 'node-fetch';
|
||||
|
||||
const SERVER_URL = 'http://localhost:3001';
|
||||
|
||||
async function testHealth() {
|
||||
try {
|
||||
console.log('🔍 Testing health endpoint...');
|
||||
const response = await fetch(`${SERVER_URL}/health`);
|
||||
|
||||
console.log('Status:', response.status);
|
||||
console.log('Headers:', Object.fromEntries(response.headers.entries()));
|
||||
|
||||
const data = await response.json();
|
||||
console.log('Response:', data);
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Error:', error);
|
||||
}
|
||||
}
|
||||
|
||||
testHealth();
|
Reference in New Issue
Block a user