This commit is contained in:
parent
61faa558bb
commit
1891addc09
@ -58,7 +58,9 @@ export function getFunctionDeterminateRemoteUrl(isServer: boolean = false) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const host = serveTarget.options?.host ?? 'http://localhost';
|
const host =
|
||||||
|
serveTarget.options?.host ??
|
||||||
|
`http${serveTarget.options.ssl ? 's' : ''}://localhost`;
|
||||||
const port = serveTarget.options?.port ?? 4201;
|
const port = serveTarget.options?.port ?? 4201;
|
||||||
return `${
|
return `${
|
||||||
host.endsWith('/') ? host.slice(0, -1) : host
|
host.endsWith('/') ? host.slice(0, -1) : host
|
||||||
|
|||||||
@ -31,7 +31,9 @@ export function getFunctionDeterminateRemoteUrl(isServer: boolean = false) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const host = serveTarget.options?.host ?? 'http://localhost';
|
const host =
|
||||||
|
serveTarget.options?.host ??
|
||||||
|
`http${serveTarget.options.ssl ? 's' : ''}://localhost`;
|
||||||
const port = serveTarget.options?.port ?? 4201;
|
const port = serveTarget.options?.port ?? 4201;
|
||||||
return `${
|
return `${
|
||||||
host.endsWith('/') ? host.slice(0, -1) : host
|
host.endsWith('/') ? host.slice(0, -1) : host
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user