This commit is contained in:
root
2026-09-13 21:42:25 +02:00
parent 0d5fb99347
commit c3bf614901
3 changed files with 55 additions and 0 deletions
+4
View File
@@ -34,6 +34,10 @@ func main() {
w.WriteHeader(http.StatusOK)
})
if staticDir := os.Getenv("STATIC_DIR"); staticDir != "" {
mux.Handle("/", spaHandler(staticDir))
}
port := os.Getenv("PORT")
if port == "" {
port = "8080"