Fix: subdirectory deployment (#2205)
This commit is contained in:
1 parent
5f7891d8db
commit
b8eda91005
20 files changed
+42
-41
No files matched your search
@@ -23,7 +23,7 @@ export function formatProxyUrlWithSegments(widget, endpoint, segments) {
|
||||
if (segments) {
|
||||
params.append("segments", JSON.stringify(segments));
|
||||
}
|
||||
return `/api/services/proxy?${params.toString()}`;
|
||||
return `api/services/proxy?${params.toString()}`;
|
||||
}
|
||||
|
||||
export function formatProxyUrl(widget, endpoint, queryParams) {
|
||||
@@ -31,7 +31,7 @@ export function formatProxyUrl(widget, endpoint, queryParams) {
|
||||
if (queryParams) {
|
||||
params.append("query", JSON.stringify(queryParams));
|
||||
}
|
||||
return `/api/services/proxy?${params.toString()}`;
|
||||
return `api/services/proxy?${params.toString()}`;
|
||||
}
|
||||
|
||||
export function asJson(data) {
|
||||
|
||||
Reference in new issue
Block a user