@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
20 lines (19 loc) • 607 B
TypeScript
/**
* Safe way to check if we're in development mode
* Works with both Node.js process.env and Vite import.meta.env
*/
export declare function isDevelopment(): boolean;
/**
* Safe way to check if we're in production mode
*/
export declare function isProduction(): boolean;
/**
* Get API base URL from environment variables
* Supports both REACT_APP_ and VITE_ prefixes
*/
export declare function getApiBaseUrl(): string;
/**
* Get any environment variable with fallback
* Tries both VITE_ and REACT_APP_ prefixes
*/
export declare function getEnvVar(name: string, defaultValue?: string): string;