← back to Bubbesblock
Add /healthz route + deploy config; live on bubbesblock.com (port 9825)
18d989b1d0e7415c7730f831e8faf8d375eb2069 · 2026-06-19 14:21:02 -0700 · Steve
Files touched
Diff
commit 18d989b1d0e7415c7730f831e8faf8d375eb2069
Author: Steve <steve@designerwallcoverings.com>
Date: Fri Jun 19 14:21:02 2026 -0700
Add /healthz route + deploy config; live on bubbesblock.com (port 9825)
---
.gitignore | 1 +
server.js | 3 +++
2 files changed, 4 insertions(+)
diff --git a/.gitignore b/.gitignore
index 1924158..26ff4df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ tmp/
dist/
build/
.next/
+.deploy.conf
diff --git a/server.js b/server.js
index 5c99cb8..ee56baa 100644
--- a/server.js
+++ b/server.js
@@ -10,6 +10,9 @@ const DATA = path.join(__dirname, 'data', 'posts.json');
app.use(express.json());
app.use(express.static(path.join(__dirname, 'public')));
+// Health probe for deploy smoke-test + uptime canary.
+app.get('/healthz', (_req, res) => res.json({ ok: true, service: 'bubbesblock' }));
+
// Read fresh each request so seed edits show up without a restart.
function load() {
return JSON.parse(fs.readFileSync(DATA, 'utf8'));
← d0b4a97 Wire BubbesBlock live: Express server + data-driven block fe
·
back to Bubbesblock
·
Add BubbesBlock Postgres DB (posts+comments+config), migrati 0110f82 →