Explorar el Código

fix(admin-ui-plugin): Fix proxy-middleware v2 to v3 issue (#3507)

William Rijksen hace 8 meses
padre
commit
ae20be166a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/core/src/plugin/plugin-utils.ts

+ 1 - 1
packages/core/src/plugin/plugin-utils.ts

@@ -39,7 +39,7 @@ export function createProxyHandler(options: ProxyOptions): RequestHandler {
     const proxyHostname = options.hostname || 'localhost';
     const middleware = createProxyMiddleware({
         // TODO: how do we detect https?
-        target: `http://${proxyHostname}:${options.port}`,
+        target: `http://${proxyHostname}:${options.port}/(options.basePath || '')`,
         pathRewrite: {
             [`^${route}`]: '/' + (options.basePath || ''),
         },