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:
parent
132e688d65
commit
631e425b80
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue