refactor: remove unused apiKey option

VITE_API_KEY was only consumed by hasApiConfig() in src/lib/config and
by the activities standalone (which is built without VITE_API_KEY
anyway, so apiKey ended up an empty string downstream). Nothing in the
main webapp uses it to authenticate any request.

Removing the option is a breaking change for any downstream that sets
it, but server-deploy was the only consumer and has already been
updated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-05-06 08:35:56 +02:00
commit 3015cbb546

View file

@ -40,7 +40,6 @@ let
# API Configuration # API Configuration
VITE_LNBITS_BASE_URL = cfg.lnbitsBaseUrl; VITE_LNBITS_BASE_URL = cfg.lnbitsBaseUrl;
VITE_API_KEY = cfg.apiKey;
VITE_LNBITS_DEBUG = if cfg.lnbitsDebug then "true" else "false"; VITE_LNBITS_DEBUG = if cfg.lnbitsDebug then "true" else "false";
VITE_WEBSOCKET_ENABLED = if cfg.websocketEnabled then "true" else "false"; VITE_WEBSOCKET_ENABLED = if cfg.websocketEnabled then "true" else "false";
@ -172,12 +171,6 @@ in {
description = "LNBits API base URL"; description = "LNBits API base URL";
}; };
apiKey = lib.mkOption {
type = lib.types.str;
default = "";
description = "LNBits invoice/read API key";
};
lnbitsDebug = lib.mkOption { lnbitsDebug = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;