Initial implementation of Bluetooth toy control app
Next.js app with a browser-side buttplug/buttplug-wasm control layer (server never touches real-time device commands), SQLite storage via Drizzle, single-secret auth, recordings/replay with device remapping, a usage stats dashboard, Docker deployment, and Gitea CI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W8WkFF5ppURBAB918593Eb
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import http from "node:http";
|
||||
|
||||
const req = http.request(
|
||||
{
|
||||
host: "127.0.0.1",
|
||||
port: process.env.PORT || 3000,
|
||||
path: "/api/health",
|
||||
timeout: 3000,
|
||||
},
|
||||
(res) => {
|
||||
process.exit(res.statusCode === 200 ? 0 : 1);
|
||||
},
|
||||
);
|
||||
|
||||
req.on("error", () => process.exit(1));
|
||||
req.on("timeout", () => {
|
||||
req.destroy();
|
||||
process.exit(1);
|
||||
});
|
||||
req.end();
|
||||
Reference in New Issue
Block a user