πŸ”§ System CheckupDashboard

Is everything wired up?

This page tests your live deployment piece by piece and tells you exactly how to fix anything that's red. Safe to run anytime β€” it changes nothing.

You're viewing this in the design preview, so everything below will show red β€” that's expected here. Open this page on your real website (yourdomain.com/status.html) for true results.
…

1 Β· The brain is running

Is _worker.js deployed and answering?
Running βœ“
Not responding. The worker file never made it into your deployment.
  1. Open your Pages project β†’ Deployments β†’ Create deployment.
  2. Drag the site folder itself (the folder that directly contains index.html AND _worker.js) β€” never individual files.
  3. Before clicking Deploy, check the file list shows _worker.js.
  4. Deploy, wait ~30 seconds, then re-run this checkup.
…

2 Β· Database connected

Does the brain have the keys to your D1 database?
Connected βœ“
No database binding.
  1. Pages project β†’ Settings β†’ Bindings (sometimes under Functions) β†’ Add β†’ D1 database.
  2. Variable name must be exactly DB β€” capital letters. Select database cnc-db. Save.
  3. Then re-deploy (Deployments β†’ Create deployment β†’ drag the site folder β†’ Deploy). Settings only apply to new deployments.
…

3 Β· Database tables exist

Was the one-time setup script run?
Tables found βœ“
Tables missing. Run the setup script:
  1. Dashboard sidebar β†’ Storage & Databases β†’ D1 β†’ open cnc-db β†’ Console tab.
  2. Paste the script below, execute it, then re-run this checkup.
CREATE TABLE IF NOT EXISTS requests (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  type TEXT NOT NULL, service TEXT, name TEXT, phone TEXT,
  address TEXT, notes TEXT, date TEXT, slot TEXT,
  status TEXT DEFAULT 'new',
  created_at TEXT DEFAULT (datetime('now'))
);
CREATE TABLE IF NOT EXISTS hours (
  dow INTEGER PRIMARY KEY, enabled INTEGER DEFAULT 1,
  open TEXT DEFAULT '08:00', close TEXT DEFAULT '18:00'
);
INSERT OR IGNORE INTO hours (dow, enabled, open, close) VALUES
  (0,0,'08:00','18:00'),(1,1,'08:00','18:00'),(2,1,'08:00','18:00'),
  (3,1,'08:00','18:00'),(4,1,'08:00','18:00'),(5,1,'08:00','18:00'),
  (6,1,'08:00','16:00');
CREATE TABLE IF NOT EXISTS blocked (date TEXT PRIMARY KEY, reason TEXT);
…

4 Β· Admin password set

Is the ADMIN_PASSWORD secret configured? (This page never sees the password itself β€” only whether one exists.)
Set βœ“ β€” log in at admin.html with that exact value
Not set.
  1. Pages project β†’ Settings β†’ Environment variables β†’ Add.
  2. Name: ADMIN_PASSWORD Β· Value: a long password you invent. Save (choose Encrypt if offered).
  3. Re-deploy, then re-run this checkup.
…

5 Β· Phone alerts configured

Is the NTFY_TOPIC secret configured?
Set βœ“ β€” try the test button below
Not set.
  1. Pages project β†’ Settings β†’ Environment variables β†’ Add.
  2. Name: NTFY_TOPIC Β· Value: your secret alert channel (something unguessable, e.g. cnc-alerts-7k2m9x).
  3. Re-deploy. Then in the ntfy app on your phone, subscribe to that exact topic.
⭐ The golden rule: every settings change (bindings, variables) only takes effect on the next deployment. Changed something? Deployments β†’ Create deployment β†’ drag the site folder β†’ Deploy.