Explorar el Código

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

Torkel Ödegaard hace 10 años
padre
commit
d7bfb727b0
Se han modificado 1 ficheros con 4 adiciones y 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