From 0a734cb6b21acd31923d71d60ea0312225bce2d5 Mon Sep 17 00:00:00 2001 From: Dorian Date: Tue, 14 Jul 2026 03:39:56 +0100 Subject: [PATCH] chore(dev): vite /app catch-all + filebrowser proxy to mock; demo docs to main Co-Authored-By: Claude Fable 5 --- docs/demo-build-info.md | 8 ++++---- neode-ui/vite.config.ts | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/demo-build-info.md b/docs/demo-build-info.md index ce73e129..4992b7c9 100644 --- a/docs/demo-build-info.md +++ b/docs/demo-build-info.md @@ -1,9 +1,9 @@ # Archipelago Public Demo — build info & status -**Status:** implemented & deployable (2026-06-22) -**Branch:** `demo-build` (worktree `../archy-demo-build`), pushed to +**Status:** implemented & deployable (2026-07-14) +**Branch:** `main` — the demo machinery was merged from the old `demo-build` +branch and now lives on main, pushed to `gitea-vps2` = `http://146.59.87.168:3000/lfg2025/archy.git`. -**Main/prod is untouched** — all demo work lives only on `demo-build`. A public, click-to-play demo of the Archipelago UI, 100% mock-data driven, multi-visitor, deployed via Portainer. See also `docs/archive/demo-deployment-design.md` @@ -18,7 +18,7 @@ Build-from-repo (works today, no registry needed): | Field | Value | |-------|-------| | Repository URL | `http://146.59.87.168:3000/lfg2025/archy.git` | -| Reference | `refs/heads/demo-build` | +| Reference | `refs/heads/main` | | Compose path | `docker-compose.demo.yml` | | Auth | user `lfg2025`, password = Gitea token | | UI port | **2100** · Login password: **`entertoexit`** | diff --git a/neode-ui/vite.config.ts b/neode-ui/vite.config.ts index 67149bd7..bb1b14eb 100644 --- a/neode-ui/vite.config.ts +++ b/neode-ui/vite.config.ts @@ -141,8 +141,10 @@ export default defineConfig({ changeOrigin: true, secure: false, }, + // Mock filebrowser (Cloud page) — same backend as everything else. Point + // BACKEND_URL at a real node to develop against its filebrowser instead. '/app/filebrowser': { - target: 'http://192.168.1.228', + target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false, }, @@ -158,6 +160,10 @@ export default defineConfig({ '/app/fedimint': { target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false }, '/app/bitcoin-core': { target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false }, '/app/bitcoin-knots': { target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false }, + // Catch-all for the remaining mock app UIs (btcpay-server, grafana, …) and + // the generic "Not available in the demo" notice. Registered after the + // specific /app/* keys so those still win. + '/app': { target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false }, '/electrs-status': { target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false }, '/proxy': { target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false }, '/lnd-connect-info': { target: process.env.BACKEND_URL || 'http://localhost:5959', changeOrigin: true, secure: false },