Documentation
¶
Overview ¶
Package webstatic serves the browser assets embedded in the openrun binary which are shared by every app on the server: the htmx runtime, the <log-tail> streaming log viewer, the action UI scripts (actions.js, json.js) and stylesheets, and the brand fonts. They are served at URLPrefix with content-hashed file names and immutable caching, so one download is cached for all apps on a server, and the same URL works on every app domain. The route needs no authentication (no user data), and is mounted outside the transport-gated management API so it is available over plain HTTP too
Index ¶
Constants ¶
const URLPrefix = "/_openrun/static"
URLPrefix is the server route the shared assets are served under
Variables ¶
var FS = hashfs.NewFS(mustSub(embedded, "static"))
FS is the hashed view of the embedded assets, rooted at the static dir
Functions ¶
Types ¶
This section is empty.