fix: honor automatic updates preference and add Settings controls

This commit is contained in:
amosblomqvist
2026-10-25 19:19:38 +02:00
parent b277ee3e0f
commit 769fc85e17
14 changed files with 820 additions and 75 deletions
+5
View File
@@ -1,6 +1,11 @@
import { readFileSync } from "node:fs";
import type { NextConfig } from "next";
const pkg = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")) as { version: string; homepage: string };
const nextConfig: NextConfig = {
// Public build metadata only; no new runtime Electron version API.
env: { LH_VERSION: pkg.version, LH_HOMEPAGE: pkg.homepage },
// Desktop target (Electron wrapper, 2026-09-17): standalone output = a
// self-contained .next/standalone/server.js the Electron shell spawns
// on 127.0.0.1. Harmless for plain web deploys (extra build output).