feat: add condition for getWebBuildFolder function (#3219)

This commit is contained in:
limingxie
2024-09-20 23:59:13 +08:00
committed by GitHub
parent 0de4e7da38
commit ed9732caf9

View File

@ -43,6 +43,10 @@ func getWebBuildFolder() string {
return path
}
if util.FileExist(filepath.Join(frontendBaseDir, "index.html")) {
return frontendBaseDir
}
path = filepath.Join(frontendBaseDir, "web/build")
return path
}