Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
export const linkToApp = (
path = "",
options?: { ref?: string; cta?: string },
) => {
const url = new URL(path, process.env.NEXT_PUBLIC_APP_BASE_URL);
if (options?.ref) {
url.searchParams.set("ref", options.ref);
}
// ref says which page the click came from, cta says which button on it.
if (options?.cta) {
url.searchParams.set("cta", options.cta);
}
return url.href;
};