02Deployment
Demo mode
Run InsightFlare with built-in mock data for UI work and demonstrations.
Demo Mode runs the full dashboard against built-in mock data. It does not need a database, secrets, or tracking traffic, so it is useful for UI development and for public demonstrations.
Run it locally
pnpm run dev:uiThis starts the Vite development server in Demo Mode. To enable Demo Mode with pnpm run dev, set DEMO_MODE=1.
Build and publish a demo Worker
pnpm run build:demo produces a demo build without resource bindings. wrangler.demo.toml configures the demo Worker (named insightflare-demo) with DEMO_MODE = "1". Scheduled tasks are disabled in Demo Mode, and the environment checks that normally validate secrets are skipped.
Use pnpm run deploy:demo or pnpm run publish:demo to deploy the demo Worker.
Behavior differences
- Data is generated in the app, not read from D1.
- The sign-in page redirects into the demo team, so no account is needed.
- Real-time data is simulated.