Documentation ¶
Index ¶
Constants ¶
View Source
const OutputPath = "holos/dist/holos"
Output must be the relative path to where the frontend build too places the output index.html file. Tip: use the holos server frontend ls command to list the embedded file system. Refer to: https://angular.io/guide/workspace-config#output-path-configuration This should be the base output path with the browser field set to "ui" in angular.json
View Source
const Path = "/ui/"
Path needs to match <base href="/ui/"> in index.html and baseHref in angular.json
Variables ¶
View Source
var Dist embed.FS
Functions ¶
func NewSPAFileServer ¶
SPAFileServer returns a http.Handler that calls h and falls back to serving the spa app container when h writes header http.StatusNotFound. Useful when the user's browser refreshes the page and the url is handled by a spa like react router.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.