chore(dev): vite /app catch-all + filebrowser proxy to mock; demo docs to main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-07-14 03:39:56 +01:00
co-authored by Claude Fable 5
parent 5c2622f39a
commit 0a734cb6b2
2 changed files with 11 additions and 5 deletions
+7 -1
View File
@@ -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 },