Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns an http.Handler that serves an embedded Vite build as a Module Federation remote.
Routes registered under /ui/:
/ui/health — 200 if remoteEntry.js exists, 503 if not /ui/assets/* — immutable content-hashed chunks (1yr cache) /ui/remoteEntry.js — federation entry point (no-cache) /ui/* — everything else (no-cache)
The fsys must be rooted at the Vite build output directory (e.g., the result of fs.Sub(embedFS, "web/dist")).
Types ¶
Click to show internal directories.
Click to hide internal directories.