Fix rewritePath

Closes #1528
This commit is contained in:
Owen
2025-11-02 14:05:41 -08:00
parent 31b66cd911
commit c16e762fa4
2 changed files with 3 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ export async function updateProxyResources(
internalPort: internalPortToCreate,
path: targetData.path,
pathMatchType: targetData["path-match"],
rewritePath: targetData.rewritePath,
rewritePath: targetData.rewritePath || targetData["rewrite-path"] || (targetData["rewrite-match"] === "stripPrefix" ? "/" : undefined),
rewritePathType: targetData["rewrite-match"],
priority: targetData.priority
})
@@ -392,7 +392,7 @@ export async function updateProxyResources(
enabled: targetData.enabled,
path: targetData.path,
pathMatchType: targetData["path-match"],
rewritePath: targetData.rewritePath,
rewritePath: targetData.rewritePath || targetData["rewrite-path"] || (targetData["rewrite-match"] === "stripPrefix" ? "/" : undefined),
rewritePathType: targetData["rewrite-match"],
priority: targetData.priority
})