mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-27 23:50:36 +08:00
Fix authentication on preview builds
We want to be able to authenticate on any host. Previously we'd assume that production builds only authenticate with app.radicle.xyz.
This commit is contained in:
@@ -12,11 +12,9 @@
|
||||
import TextInput from "@app/components/TextInput.svelte";
|
||||
|
||||
$: customUrl = `${httpd.api.baseUrl.scheme}://${httpd.api.baseUrl.hostname}:${customPort}`;
|
||||
$: command = import.meta.env.PROD
|
||||
? `rad web --backend ${customUrl}`
|
||||
: `rad web --frontend ${
|
||||
new URL(import.meta.url).origin
|
||||
} --backend ${customUrl}`;
|
||||
$: command = `rad web --frontend ${
|
||||
new URL(import.meta.url).origin
|
||||
} --backend ${customUrl}`;
|
||||
let customPort = httpd.api.port;
|
||||
$: validPortNumber = Number(customPort) > 0 && Number(customPort) <= 65535;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user