/** * Configuration module for the PDS Dashboard * Uses SvelteKit environment variables */ import { PUBLIC_PDS_URL, PUBLIC_FRONTEND_URL, PUBLIC_MAX_POSTS, PUBLIC_SHOW_FUTURE_POSTS } from '$env/static/public'; export class Config { /** * The base URL of the PDS (Personal Data Server). */ static readonly PDS_URL: string = PUBLIC_PDS_URL; /** * The base URL of the frontend service for linking to replies/quotes/accounts etc. */ static readonly FRONTEND_URL: string = PUBLIC_FRONTEND_URL; /** * Maximum number of posts to fetch from the PDS per request */ static readonly MAX_POSTS: number = parseInt(PUBLIC_MAX_POSTS, 10); /** * Whether to show the posts with timestamps that are in the future. */ static readonly SHOW_FUTURE_POSTS: boolean = PUBLIC_SHOW_FUTURE_POSTS === 'true'; }