From 0927a12735d04d79abc32643333e1651bbd020d2 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 23 Oct 2023 13:05:09 +0800 Subject: [PATCH] [_] --- sui/storages/local/build.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sui/storages/local/build.go b/sui/storages/local/build.go index 23fc716b38..94027f520b 100644 --- a/sui/storages/local/build.go +++ b/sui/storages/local/build.go @@ -15,8 +15,14 @@ import ( func (tmpl *Template) Build(option *core.BuildOption) error { var err error + root, err := tmpl.local.DSL.PublicRoot() + if err != nil { + log.Error("SyncAssets: Get the public root error: %s. use %s", err.Error(), tmpl.local.DSL.Public.Root) + root = tmpl.local.DSL.Public.Root + } + if option.AssetRoot == "" { - option.AssetRoot = filepath.Join(tmpl.local.DSL.Public.Root, "assets") + option.AssetRoot = filepath.Join(root, "assets") } // Sync the assets