fix(static): Correct the API_URL value to replace in index.html

This commit is contained in:
MidoriKurage
2026-05-06 22:05:36 +08:00
committed by kolaente
parent 7800102f93
commit beaf4e9e65

View File

@@ -118,7 +118,7 @@ func serveIndexFile(c *echo.Context, assetFs http.FileSystem) (err error) {
publicURL = "/"
}
scriptConfigString = strings.ReplaceAll(scriptConfigString, "'http://localhost:3456/api/v1'", "'"+publicURL+"api/v1'")
scriptConfigString = strings.ReplaceAll(scriptConfigString, "'/api/v1'", "'"+publicURL+"api/v1'")
}
reader := strings.NewReader(scriptConfigString)