Explorar o código

fix(settings): reverted prev settings fix for detecting public_gen folder in dev, caused issue for prod build

Torkel Ödegaard %!s(int64=10) %!d(string=hai) anos
pai
achega
d7bfb727b0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      pkg/setting/setting.go

+ 4 - 0
pkg/setting/setting.go

@@ -363,6 +363,10 @@ func validateStaticRootPath() error {
 		return nil
 	}
 
+	if _, err := os.Stat(StaticRootPath + "css"); err == nil {
+		return nil
+	}
+
 	if _, err := os.Stat(StaticRootPath + "_gen/css"); err == nil {
 		StaticRootPath = StaticRootPath + "_gen"
 		return nil