added default fallback for prod
This commit is contained in:
@@ -47,7 +47,8 @@ export const secondaryNavTree = [
|
||||
},
|
||||
] as AppSidebarItem[];
|
||||
|
||||
export const WS_SCRCPY_URL = env.PUBLIC_WS_SCRCPY_SVC_URL;
|
||||
export const WS_SCRCPY_URL =
|
||||
env.PUBLIC_WS_SCRCPY_SVC_URL ?? "https://iotam-ws-scrcpy.snapyra.com";
|
||||
|
||||
export const COMPANY_NAME = "SaaS Template";
|
||||
export const WEBSITE_URL = "https://company.com";
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import { Input } from "$lib/components/ui/input";
|
||||
import { Label } from "$lib/components/ui/label";
|
||||
import * as Table from "$lib/components/ui/table";
|
||||
import { env } from "$env/dynamic/public";
|
||||
import { PUBLIC_FRONTEND_URL } from "$env/static/public";
|
||||
import MaxWidthWrapper from "$lib/components/molecules/max-width-wrapper.svelte";
|
||||
import { mainNavTree } from "$lib/core/constants";
|
||||
import { linkVM } from "$lib/domains/link/link.vm.svelte";
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
function buildPublicLink(token: string): string {
|
||||
const base = env.PUBLIC_FRONTEND_URL?.trim() || "/";
|
||||
const base = PUBLIC_FRONTEND_URL?.trim() || "/";
|
||||
const origin = typeof window !== "undefined" ? window.location.origin : "http://localhost";
|
||||
const url = new URL(base, origin);
|
||||
url.searchParams.set("token", token);
|
||||
|
||||
Reference in New Issue
Block a user