fix(frontend): key as config flag
build / Go-Build (push) Successful in 1m29s
build / Go-Build (pull_request) Successful in 1m27s

This commit is contained in:
2026-05-28 12:17:04 +02:00
parent 2dfc206fea
commit 293c720eeb
+1 -2
View File
@@ -4,7 +4,6 @@ import (
"io/fs"
"log"
"net/http"
"os"
"text/template"
svgtemplater "tomatentum.net/svg-templater"
@@ -97,7 +96,7 @@ func PrepareFrontend(key string) {
// Execute with environment variables
data := map[string]string{
"APIKey": os.Getenv("API_KEY"),
"APIKey": key,
"APIUrl": "",
}
if err := tmpl.Execute(w, data); err != nil {