fix: setup wizard logo not loading

The logo handler tried os.ReadFile() on a non-existent filesystem path.
The SVG only exists as an embedded string constant in the web package.
Export FelhomLogoSVG and serve it directly in the setup handler.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 15:08:45 +01:00
parent 296fdbfdcb
commit a5fec20d31
4 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
package web
// felhomLogoSVG is the felhom.eu logo, served at /static/felhom-logo.svg.
// FelhomLogoSVG is the felhom.eu logo, served at /static/felhom-logo.svg.
// Cleaned from the original Inkscape SVG, removing editor metadata.
const felhomLogoSVG = `<?xml version="1.0" encoding="UTF-8"?>
const FelhomLogoSVG = `<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 645.30703 408.36403" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="lg9"><stop offset="0"/><stop offset="0.99875164" style="stop-color:rgb(4,114,187)"/></linearGradient>