package utils

import (
	"github.com/astaxie/beego/logs"
)

func GetStaticDir() string {

	if IsExist("static/web") {
		return "static/web"

	} else if IsExist("frontend/dist") {
		return "frontend/dist"
	} else {
		logs.Warn("no static web dir for static/web or frontend/dist, please check")
	}
	return "static/web"
}