The weeb for the next gen discord boat - Wamellow
wamellow.com
bot
discord
1import { getBaseUrl } from "@/utils/urls";
2
3const domain = getBaseUrl().split("://")[1];
4
5export const defaultCookieOptions = {
6 secure: getBaseUrl().startsWith("https://"),
7 httpOnly: false,
8 sameSite: "lax",
9 domain: "." + (domain.startsWith("dev.") ? domain.replace(/^dev\./, "") : domain),
10 get expires() {
11 return new Date(Date.now() + 1_000 * 60 * 60 * 24 * 28);
12 }
13} as const;