Skip to content

Commit 011cb32

Browse files
committed
make xdebugUrl respect pathPrefix
1 parent df72c98 commit 011cb32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ export class AtelierAPI {
137137
}
138138

139139
public xdebugUrl(): string {
140-
const { host, https, port, apiVersion } = this.config;
140+
const { host, https, port, apiVersion, pathPrefix } = this.config;
141141
const proto = https ? "wss" : "ws";
142-
return `${proto}://${host}:${port}/api/atelier/v${apiVersion}/%25SYS/debug`;
142+
return `${proto}://${host}:${port}${pathPrefix}/api/atelier/v${apiVersion}/%25SYS/debug`;
143143
}
144144

145145
public updateCookies(newCookies: string[]): Promise<any> {

0 commit comments

Comments
 (0)