MCPcopy Create free account
hub / github.com/PostHog/duckgres / defaultStaticDir

Function defaultStaticDir

controlplane/admin/devserver/main.go:253–255  ·  view source on GitHub ↗

defaultStaticDir resolves the static dir relative to the repo layout so the server can be run from the repo root with no flags.

()

Source from the content-addressed store, hash-verified

251 if !ok {
252 file = "models.html"
253 }
254 http.ServeFile(w, r, filepath.Join(dir, file))
255}
256
257// defaultStaticDir resolves the static dir relative to the repo layout so the
258// server can be run from the repo root with no flags.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected