Plugin Utilities
Creates a proxy middleware which proxies the given route to the given port. Useful for plugins which start their own servers but should be accessible via the main Vendure url.
Example
Parameters
options
parameter
ProxyOptionsOptions to configure proxy middleware via createProxyHandler.
label
property
stringA human-readable label for the service which is being proxied. Used to generate more informative logs.
route
property
stringThe route of the Vendure server which will act as the proxy url.
port
property
numberThe port on which the service being proxied is running.
hostname
property
stringDefault:
'localhost'The hostname of the server on which the service being proxied is running.
basePath
property
stringAn optional base path on the proxied server.
Was this chapter helpful?