mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 22:19:40 +02:00
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
48 lines
826 B
TypeScript
48 lines
826 B
TypeScript
/**
|
|
* Shared configuration utilities for Manacore monorepo
|
|
*
|
|
* This package provides common configuration utilities including
|
|
* environment validation, API endpoint construction, and feature flags.
|
|
*/
|
|
|
|
// Environment utilities
|
|
export {
|
|
envSchemas,
|
|
supabaseEnvSchema,
|
|
appEnvSchema,
|
|
createEnvConfig,
|
|
validateEnv,
|
|
getRequiredEnv,
|
|
getEnv,
|
|
getBoolEnv,
|
|
getNumEnv,
|
|
isDevelopment,
|
|
isProduction,
|
|
isTest,
|
|
} from './env';
|
|
|
|
// API utilities
|
|
export {
|
|
type ApiConfig,
|
|
createApiBuilder,
|
|
buildUrl,
|
|
parseUrl,
|
|
joinPath,
|
|
HTTP_METHODS,
|
|
HTTP_STATUS,
|
|
type HttpMethod,
|
|
type HttpStatus,
|
|
isSuccessStatus,
|
|
isClientError,
|
|
isServerError,
|
|
} from './api';
|
|
|
|
// Feature flag utilities
|
|
export {
|
|
type FeatureFlag,
|
|
createFeatureFlags,
|
|
isFeatureEnabled,
|
|
type AppMetadata,
|
|
createAppMetadata,
|
|
formatVersion,
|
|
} from './features';
|