Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

549 B
Raw Blame
// ===================
// ©AngelaMos | 2026
// config.ts
// ===================

export const ROUTES = {
  HOME: '/',
  MANAGE: '/m/:manageId',
} as const

export type Route = typeof ROUTES

export function manageRoute(manageId: string): string {
  return `/m/${encodeURIComponent(manageId)}`
}

export const QUERY_CONFIG = {
  STALE_TIME: {
    USER: 1000 * 60 * 5,
    STATIC: Infinity,
    FREQUENT: 1000 * 30,
  },
  GC_TIME: {
    DEFAULT: 1000 * 60 * 30,
    LONG: 1000 * 60 * 60,
  },
  RETRY: {
    DEFAULT: 3,
    NONE: 0,
  },
} as const