14 lines
382 B
JavaScript
14 lines
382 B
JavaScript
import { readable } from "svelte/store";
|
|
|
|
export const url = readable(
|
|
typeof window !== "undefined" && window.location.hostname === "localhost"
|
|
? "/short"
|
|
: "https://fedesrv.ddns.net/s",
|
|
);
|
|
|
|
export const redirect = readable(
|
|
typeof window !== "undefined" && window.location.hostname === "localhost"
|
|
? "http://localhost:8080/"
|
|
: "https://fedesrv.ddns.net/s",
|
|
);
|