refactor: update productionBasePath to empty string and adjust static resource handling for dashboard

This commit is contained in:
mlogclub
2026-04-15 18:18:06 +08:00
parent 3209e40a98
commit 1ca7493f31
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func NewServer() (*iris.Application, error) {
})
// 注册dashboard静态资源服务
app.HandleDir("/dashboard", iris.Dir("dashboard/out"), iris.DirOptions{
app.HandleDir("/", iris.Dir("dashboard/out"), iris.DirOptions{
IndexName: "index.html",
Compress: true,
ShowList: false,