// Central runtime configuration. Both URLs are public (the app is a static SPA // that talks to these APIs directly from the browser), so NEXT_PUBLIC_ envs are // used as optional overrides with sensible defaults baked in. export const APPRO_BASE_URL = process.env.NEXT_PUBLIC_APPRO_BASE_URL ?? "https://api.approagency.ir/api"; export const MEDITATION_BASE_URL = process.env.NEXT_PUBLIC_MEDITATION_BASE_URL ?? "https://meditation.approagency.ir/api"; export const PACKAGE_NAME = process.env.NEXT_PUBLIC_PACKAGE_NAME ?? "com.approagency.meditation"; // Origin that serves uploaded files (audio/video/images). Defaults to the // meditation host without the trailing `/api`, so relative storage paths like // `storage/sounds/x.mp3` resolve to a full URL. export const ASSET_BASE_URL = process.env.NEXT_PUBLIC_ASSET_BASE_URL ?? MEDITATION_BASE_URL.replace(/\/api\/?$/, ""); // localStorage keys for the meditation bearer token and approagency token. export const TOKEN_STORAGE_KEY = "meditation_admin_token"; export const APPRO_TOKEN_STORAGE_KEY = "approagency_admin_token";