From 4fb16e079eea16bb66ca0fcab82f3d17752509eb Mon Sep 17 00:00:00 2001 From: Dorian Date: Thu, 12 Feb 2026 13:02:11 +0000 Subject: [PATCH] Enable mock data mode in Docker build Without a backend API server in the Docker deployment, the app was trying to reach localhost:4000 causing a 30s timeout on page load (content store) and a connection error on Nostr login (auth store). Setting VITE_USE_MOCK_DATA=true makes both use the built-in mock data and local Nostr relay instead. Co-authored-by: Cursor --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1e475d4..dc5e7d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,10 @@ COPY . . # via the /relay nginx proxy at runtime (instead of hardcoding localhost) ENV VITE_NOSTR_RELAYS="" +# Enable mock data mode — no backend API server in this deployment, +# so auth and content use built-in mock/local data instead of timing out +ENV VITE_USE_MOCK_DATA=true + # Build the application RUN npm run build