import { createFileRoute } from "@tanstack/react-router";
import z from "zod";
import { useSession } from "../lib/auth-client";
export const Route = createFileRoute("/")({
validateSearch: z.object({
redirect: z.string().optional(),
}),
component: Index,
});
function Index() {
const { isPending } = useSession();
if (isPending)
return
Loading...
;
// if (!session) return
let url: string;
if (window.location.origin.includes("localhost")) {
url = `https://www.youtube.com/watch?v=dQw4w9WgXcQ`;
} else if (window.location.origin.includes("vms006")) {
url = `https://${window.location.hostname.replace("vms006", "prod.alpla.net/")}lst/app/old/ocp`;
} else {
url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
}
return (
Welcome Lst - V3
This is active in your plant today due to having warehousing activated
and new functions needed to be introduced, you should be still using LST
as you were before.
If you dont know why you are here and looking for One Click Print{" "}
Click Here