diff --git a/neode-ui/mock-backend.js b/neode-ui/mock-backend.js index 7f0c8c1f..540f4862 100755 --- a/neode-ui/mock-backend.js +++ b/neode-ui/mock-backend.js @@ -1250,6 +1250,29 @@ for (const [prefixes, dir] of [ for (const p of prefixes) app.use(p, express.static(path.join(DOCKER_UI, dir))) } // Shells that reference /app//assets/... resolve to the frontend's shared assets. +// Demo placeholder for mempool: the real explorer needs a synced chain + +// electrs, which the public demo doesn't run. Show a branded "not available +// in demo" page instead of a 502. Self-contained (inline styles/logo) so it +// renders identically from the mock origin in dev and in the demo stack. +app.get(/^\/app\/mempool(\/.*)?$/, (_req, res) => { + res.type('html').send(`Mempool + +
+
+
+
+
+
+
+
mempool
+

Not available in the demo

+

+ The block explorer runs against your node's own synced chain — install Archipelago to explore mempool.space-style data privately. +

+
+`) +}) + app.get(/^\/app\/[^/]+\/assets\/(.*)$/, (req, res) => res.redirect(302, '/assets/' + req.params[0])) // Dummy status for both the electrs-ui shell and the in-app ElectrumX sync screen.