LivePreviewEndpoint
Handler of the live preview endpoint (/live/<file>
) which serves static files relative to a target file or directory. Additionally, for HTML files, it serves a wrapper HTML that includes a WebSocket script + iframe for live previewing.
Parameters
origin
the root directory from which files are served