mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Change rad web command when httpd port changes
Instead of using always the `config.seeds.defaultHttpdPort` which is 443, we should take into account the `customPort` variable that is set by the user. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -14,11 +14,12 @@
|
||||
import Link from "@app/components/Link.svelte";
|
||||
import PortInput from "@app/App/Header/Connect/PortInput.svelte";
|
||||
|
||||
$: customUrl = `${httpd.api.baseUrl.scheme}://${httpd.api.baseUrl.hostname}:${customPort}`;
|
||||
$: command = import.meta.env.PROD
|
||||
? `rad web --backend ${httpd.api.url}`
|
||||
: `rad web --frontend ${new URL(import.meta.url).origin} --backend ${
|
||||
httpd.api.url
|
||||
}`;
|
||||
? `rad web --backend ${customUrl}`
|
||||
: `rad web --frontend ${
|
||||
new URL(import.meta.url).origin
|
||||
} --backend ${customUrl}`;
|
||||
|
||||
let customPort = httpd.api.port;
|
||||
const buttonTitle: Record<HttpdState["state"], string> = {
|
||||
|
||||
Reference in New Issue
Block a user