From 3015cbb5464d53fea8993d2576a3dad1f01ae615 Mon Sep 17 00:00:00 2001 From: Padreug Date: Wed, 6 May 2026 08:35:56 +0200 Subject: [PATCH] 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) --- webapp.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/webapp.nix b/webapp.nix index c2facd8..95888fa 100644 --- a/webapp.nix +++ b/webapp.nix @@ -40,7 +40,6 @@ let # API Configuration VITE_LNBITS_BASE_URL = cfg.lnbitsBaseUrl; - VITE_API_KEY = cfg.apiKey; VITE_LNBITS_DEBUG = if cfg.lnbitsDebug then "true" else "false"; VITE_WEBSOCKET_ENABLED = if cfg.websocketEnabled then "true" else "false"; @@ -172,12 +171,6 @@ in { description = "LNBits API base URL"; }; - apiKey = lib.mkOption { - type = lib.types.str; - default = ""; - description = "LNBits invoice/read API key"; - }; - lnbitsDebug = lib.mkOption { type = lib.types.bool; default = false;