
export const appUrl = process.env.APP_URL as string;

export const jwtSecret: string = process.env.JWT_SECRET as string

export const defaultRoleName = 'gen_user';

export const encodedJwtSecret = new TextEncoder().encode(jwtSecret)

export const s3AccessKeyId = process.env.S3_ACCESS_KEY_ID as string

export const s3SecretAccessKey = process.env.S3_SECRET_ACCESS_KEY as string

export const s3BucketName = process.env.S3_BUCKET_NAME as string

export const s3Region = process.env.S3_REGION as string

export const s3Url = process.env.S3_URL as string

export const redisUrl = process.env.REDIS_URL as string


export const expoAccessToken = process.env.EXPO_ACCESS_TOKEN as string;

export const phonePeBaseUrl = process.env.PHONE_PE_BASE_URL as string;

export const phonePeClientId = process.env.PHONE_PE_CLIENT_ID as string;

export const phonePeClientVersion = Number(process.env.PHONE_PE_CLIENT_VERSION as string);

export const phonePeClientSecret = process.env.PHONE_PE_CLIENT_SECRET as string;

export const phonePeMerchantId = process.env.PHONE_PE_MERCHANT_ID as string;

export const razorpayId = process.env.RAZORPAY_KEY as string;

export const razorpaySecret = process.env.RAZORPAY_SECRET as string;

export const otpSenderAuthToken = process.env.OTP_SENDER_AUTH_TOKEN as string;

export const minOrderValue = Number(process.env.MIN_ORDER_VALUE as string);

export const deliveryCharge = Number(process.env.DELIVERY_CHARGE as string);

export const telegramBotToken = process.env.TELEGRAM_BOT_TOKEN as string;

export const telegramChatIds = (process.env.TELEGRAM_CHAT_IDS as string)?.split(',').map(id => id.trim()) || [];

export const isDevMode = (process.env.ENV_MODE as string) === 'dev';