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
|
# Market Configuration
|
||||||
VITE_MARKET_NADDR = cfg.marketNaddr;
|
VITE_MARKET_NADDR = cfg.marketNaddr;
|
||||||
|
|
||||||
|
# Demo Mode
|
||||||
|
VITE_DEMO_MODE = if cfg.demoMode then "true" else "false";
|
||||||
|
|
||||||
# Additional env vars
|
# Additional env vars
|
||||||
NODE_ENV = "production";
|
NODE_ENV = "production";
|
||||||
|
|
||||||
|
|
@ -208,6 +211,12 @@ in {
|
||||||
description = "Nostr address (naddr) for the market configuration";
|
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 {
|
enableSSL = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue