fix(static): Correct the API_URL value to replace in index.html
This commit is contained in:
parent
7800102f93
commit
beaf4e9e65
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue