MCPcopy Create free account
hub / github.com/compozy/agh / newStaticFS

Function newStaticFS

internal/api/httpapi/static.go:25–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func newStaticFS() (staticSourceFS, error) {
26 if override := strings.TrimSpace(os.Getenv(webDistDirEnvVar)); override != "" {
27 return newLocalStaticFS(override)
28 }
29 return newEmbeddedStaticFS()
30}
31
32func newEmbeddedStaticFS() (staticSourceFS, error) {
33 staticFS, err := fs.Sub(webassets.DistFS, webassets.DistDir)

Callers 3

mustStaticFSFunction · 0.85
NewFunction · 0.85

Calls 2

newLocalStaticFSFunction · 0.85
newEmbeddedStaticFSFunction · 0.85

Tested by 2

mustStaticFSFunction · 0.68