mirror of
https://github.com/AlistGo/alist.git
synced 2025-05-28 11:03:20 +08:00
💚 fix web replace
This commit is contained in:
@ -26,6 +26,7 @@ func InitIndex() {
|
||||
cdnUrl = strings.TrimRight(cdnUrl, "/")
|
||||
conf.RawIndexHtml = string(data)
|
||||
conf.RawIndexHtml = strings.ReplaceAll(conf.RawIndexHtml, "/CDN_URL", cdnUrl)
|
||||
conf.RawIndexHtml = strings.ReplaceAll(conf.RawIndexHtml, "assets/", cdnUrl+"/assets/")
|
||||
}
|
||||
|
||||
func Static(r *gin.Engine) {
|
||||
|
Reference in New Issue
Block a user