Add demoMode option for demo login page

When enabled, sets VITE_DEMO_MODE=true which switches the login page
to LoginDemo.vue with auto-generated demo account creation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-04-25 16:39:32 +02:00
commit 631e425b80

View file

@ -57,6 +57,9 @@ let
# Market Configuration
VITE_MARKET_NADDR = cfg.marketNaddr;
# Demo Mode
VITE_DEMO_MODE = if cfg.demoMode then "true" else "false";
# Additional env vars
NODE_ENV = "production";
@ -208,6 +211,12 @@ in {
description = "Nostr address (naddr) for the market configuration";
};
demoMode = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable demo mode with auto-generated demo accounts on the login page";
};
enableSSL = lib.mkOption {
type = lib.types.bool;
default = true;