Personal no-bs blogging platform.
Something went wrong. Try again.
1234567891011121314151617181920212223242526import { getGitInfo } from "@/lib/git";
export const MAX_SUBDOMAIN = 30;export const MAX_BLOG_TITLE = 60;export const MAX_BLOGS_PER_USER = 3; // TODOexport const MAX_BLOG_DESCRIPTION = 60;
export const MAX_POST_LENGTH = 6000;export const MAX_POST_TITLE_LENGTH = 60;export const MIN_PASSWORD = 8;/** * One week in SECONDS. */export const SESSION_TOKEN_DURATION = 60 * 60 * 24 * 7;/** * One week in MILISECONDS. */export const SESSION_TOKEN_DURATION_MS = SESSION_TOKEN_DURATION * 1000;
export const FORBIDDEN_SUBDOMAINS = ["admin", "config", "dash", "dashboard", "login", "auth", "register"];
export const DOMAIN = process.env.DOMAIN;
export const UUID_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/;
export const GIT = getGitInfo();