server library
Server-side Jaspr middleware that proxies /__dash_review/api/* requests on
the main site port directly to the loopback ReviewLocalServer instance.
This enables local review comment syncing to work seamlessly over same-origin HTTP/HTTPS without needing separate port forwarding on VS Code Remote, Cloudtop web previews, SSH tunnels, or Private Network Access CORS.
Constants
- reviewProxyPathPrefix → const String
-
URL prefix mounted on the Jaspr
ServerAppfor same-origin local review API calls.
Functions
-
registerReviewLocalProxyMiddleware(
{ReviewConfig? config}) → void -
Registers the same-origin
/__dash_review/api/*proxy middleware on Jaspr'sServerAppwhen local visual review mode is enabled. -
reviewLocalProxyMiddleware(
{ReviewConfig? config}) → Handler Function(Handler ) -
Creates a
shelf-compatible middleware (Handler Function(Handler)) that forwards same-origin/__dash_review/api/*requests to ReviewConfig.serverOrigin.